mirror of
https://github.com/skanehira/tson
synced 2024-11-15 12:13:04 +00:00
fix parse bool
This commit is contained in:
parent
84fe79ca33
commit
36d4114d49
@ -241,6 +241,8 @@ func (g *Gui) parseValue(node *tview.TreeNode) interface{} {
|
||||
return i
|
||||
} else if f, err := strconv.ParseFloat(v, 64); err == nil {
|
||||
return f
|
||||
} else if b, err := strconv.ParseBool(v); err == nil {
|
||||
return b
|
||||
}
|
||||
return v
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user