Versions in this module Expand all Collapse all v1 v1.0.0 Jul 9, 2023 Changes in this version + func Walk(v Value, visitor func(path Path, val Value) error) error + type Key string + func KeyInt(index int) Key + func (k Key) Int() int + func (k Key) String() string + type Path []Key + func (p Path) Append(key Key) Path + func (p Path) Equals(other Path) bool + func (p Path) Get(index int) Key + func (p Path) Len() int + func (p Path) Slice(begin int, endExclusive int) Path + type Props map[string]Value + type Type int + const TypeArray + const TypeBoolean + const TypeNull + const TypeNumber + const TypeObject + const TypeString + func (t Type) String() string + type Value interface + ArrayAddElm func(vs ...Value) + ArrayGetElm func(index int) Value + ArrayLen func() int + ArraySetElm func(index int, v Value) + ArraySlice func(begin int, endExclusive int) Value + Assign func(v Value) + BooleanGet func() bool + Clone func() Value + NumberGet func() json.Number + ObjectDelElm func(key string) + ObjectGetElm func(key string) Value + ObjectHasElm func(key string) bool + ObjectKeys func() []string + ObjectLen func() int + ObjectSetElm func(key string, v Value) + StringGet func() string + Type func() Type + func Array(vs ...Value) Value + func Boolean(b bool) Value + func Find(v Value, path Path) (Value, bool) + func Null() Value + func Number(n V) Value + func Object(p ...Props) Value + func String(s string) Value