jsonutil

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b *fastjson.Value) bool

Equal checks if two JSON values are equal

func Walk

func Walk(a *fastjson.Arena, v *fastjson.Value, fieldPath []string, create bool, finalize func(prevValue *fastjson.Value, value *fastjson.Value) (res *fastjson.Value, err error)) (err error)

Walk walks to the given path and calls the "finalize" function that can replace the value. If create == true path will be created

Types

type Value

type Value struct {
	Value *fastjson.Value
	// contains filtered or unexported fields
}

func (*Value) Equal

func (v *Value) Equal(b *fastjson.Value) bool

func (*Value) FillCopy

func (v *Value) FillCopy(fv *fastjson.Value)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL