GetStringBytes returns string value by the given keys path. Array indexes may be represented as decimal numbers in keys. nil is returned for non-existing keys path or for invalid value type. The returned string is valid until Parse is called on the Parser returned v.
(keys ...string)
| 858 | // |
| 859 | // The returned string is valid until Parse is called on the Parser returned v. |
| 860 | func (v *Value) GetStringBytes(keys ...string) []byte { |
| 861 | v = v.Get(keys...) |
| 862 | if v == nil || v.Type() != TypeString { |
| 863 | return nil |
| 864 | } |
| 865 | return s2b(v.s) |
| 866 | } |
| 867 | |
| 868 | // GetBool returns bool value by the given keys path. |
| 869 | // |