2
0
mirror of https://github.com/skanehira/tson synced 2024-11-15 12:13:04 +00:00

fix parse bool

This commit is contained in:
skanehira 2019-11-01 16:58:26 +09:00
parent 84fe79ca33
commit 36d4114d49

View File

@ -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
}