From 36d4114d494e725e977b44fe8fd24bbe11d3500f Mon Sep 17 00:00:00 2001 From: skanehira Date: Fri, 1 Nov 2019 16:58:26 +0900 Subject: [PATCH] fix parse bool --- gui/gui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/gui.go b/gui/gui.go index 242bba7..12076b5 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -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 }