anyencutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

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

Equal checks if two JSON values are equal

func Walk

func Walk(a *anyenc.Arena, v *anyenc.Value, fieldPath []string, create bool, finalize func(prevValue *anyenc.Value, value *anyenc.Value) (res *anyenc.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 *anyenc.Value
	// contains filtered or unexported fields
}

func (*Value) Equal

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

func (*Value) FillCopy

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

Jump to

Keyboard shortcuts

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