(name string)
| 94 | } |
| 95 | |
| 96 | func (n *Node) Bool(name string) (bool, bool) { |
| 97 | v, ok := n.prop(name) |
| 98 | if !ok { |
| 99 | return false, false |
| 100 | } |
| 101 | return v.Value.Bool(), true |
| 102 | } |
| 103 | |
| 104 | func Parse(name string, v interface{}) (*Node, error) { |
| 105 | return parse(name, reflect.ValueOf(v)) |
no test coverage detected