config: add support for float64

This commit is contained in:
Alex Crawford
2014-11-21 15:43:48 -08:00
parent 3275ead1ec
commit 4a0019c669
6 changed files with 64 additions and 9 deletions

View File

@@ -125,7 +125,7 @@ func toNode(v interface{}, c context, n *node) {
n.children = append(n.children, cn)
c.Increment()
}
case reflect.String, reflect.Int, reflect.Bool:
case reflect.String, reflect.Int, reflect.Bool, reflect.Float64:
default:
panic(fmt.Sprintf("toNode(): unhandled kind %s", vv.Kind()))
}