Documentation ¶
Index ¶
- func Compact(dst *bytes.Buffer, src RawValue) error
- func Decode(data []byte, v interface{}) (err error)
- func EncodeAndStore(v interface{}, w interface{}, pretty ...bool) (r []byte, err error)
- func EncodePrefix(v interface{}, prefix string, pretty ...bool) (r []byte)
- func GetFromFile(src string, path string) (g gjson.Result)
- func MapToStruct(m any, target any) (err error)
- func Marshal(v interface{}) ([]byte, error)
- func Read(src string, v interface{}) (err error)
- func Save(src string, data []byte) (err error)
- func Unmarshal(data []byte, v interface{}) error
- func Valid(src []byte) bool
- type MarshalJSON
- type Raw
- type RawValue
- func (o RawValue) Clean() (r RawValue)
- func (o RawValue) Delete(p string) RawValue
- func (o RawValue) Format(f fmt.State, verb rune)
- func (o RawValue) Get(p string) (result Result)
- func (o RawValue) GetMany(p ...string) (result []Result)
- func (o RawValue) Highlight(query string) (r RawValue)
- func (o RawValue) Keys(p string) (result Result)
- func (o RawValue) Map() (m map[string]any)
- func (o RawValue) Object() Result
- func (o RawValue) Render(template string, key string) (r RawValue)
- func (o RawValue) Set(p string, value any) RawValue
- func (o RawValue) Size() (size string)
- func (o RawValue) String() string
- func (o RawValue) Value() any
- type Result
- type UnmarshalJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeAndStore ¶
func EncodePrefix ¶
func MapToStruct ¶
Types ¶
type MarshalJSON ¶
type Raw ¶
type Raw = gojson.RawMessage
type RawValue ¶
type RawValue []byte
func EncodeNoEscape ¶
func EncodeWithColor ¶
func LoadWithErr ¶
func (RawValue) Delete ¶
delete node by path it wont delete the original value unless it set to itself, ie: data = data.Delete(path)
type UnmarshalJSON ¶
type UnmarshalJSON = gojson.Unmarshaler
Click to show internal directories.
Click to hide internal directories.