fix dosn't convert nil to null

develop
skanehira 5 years ago
parent f046ce0492
commit 9cca51ffc1

@ -84,6 +84,8 @@ func (t *Tree) NewNodeWithLiteral(i interface{}) *tview.TreeNode {
text = fmt.Sprintf("%f", v)
case bool:
text = fmt.Sprintf("%t", v)
case nil:
text = "null"
case string:
text = v
}

Loading…
Cancel
Save