fastjsonext

package
v2.0.0-rc.61 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NullValue = fastjson.MustParse(`null`)
)

Functions

func AppendErrorToArray

func AppendErrorToArray(v *fastjson.Value, msg string, path []PathElement)

func AppendToArray

func AppendToArray(array, value *fastjson.Value)

func CreateErrorObjectWithPath

func CreateErrorObjectWithPath(message string, path []PathElement) *fastjson.Value

func MergeValues

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

func MergeValuesWithPath

func MergeValuesWithPath(a, b *fastjson.Value, path ...string) (*fastjson.Value, bool)

func PrintGraphQLResponse

func PrintGraphQLResponse(data, errors *fastjson.Value) string

func SetNull

func SetNull(v *fastjson.Value, path ...string)

func SetValue

func SetValue(v *fastjson.Value, value *fastjson.Value, path ...string)

func ValueIsNonNull

func ValueIsNonNull(v *fastjson.Value) bool

func ValueIsNull

func ValueIsNull(v *fastjson.Value) bool

Types

type PathElement

type PathElement struct {
	Name string
	Idx  int
}

Jump to

Keyboard shortcuts

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