value_tests

package
v0.0.0-...-84b5b69 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnonymousArray_array1_json_unmarshal

func AnonymousArray_array1_json_unmarshal(iter *jsoniter.Iterator, out *[]string)

func AnonymousArray_array2_json_marshal

func AnonymousArray_array2_json_marshal(stream *jsoniter.Stream, val []string)

func AnonymousArray_json_marshal

func AnonymousArray_json_marshal(stream *jsoniter.Stream, val AnonymousArray)

func AnonymousArray_json_marshal_field

func AnonymousArray_json_marshal_field(stream *jsoniter.Stream, val AnonymousArray)

func AnonymousArray_json_unmarshal

func AnonymousArray_json_unmarshal(iter *jsoniter.Iterator, out *AnonymousArray)

func AnonymousArray_json_unmarshal_field

func AnonymousArray_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *AnonymousArray) bool

func AnonymousMap_json_marshal

func AnonymousMap_json_marshal(stream *jsoniter.Stream, val AnonymousMap)

func AnonymousMap_json_marshal_field

func AnonymousMap_json_marshal_field(stream *jsoniter.Stream, val AnonymousMap)

func AnonymousMap_json_unmarshal

func AnonymousMap_json_unmarshal(iter *jsoniter.Iterator, out *AnonymousMap)

func AnonymousMap_json_unmarshal_field

func AnonymousMap_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *AnonymousMap) bool

func AnonymousMap_map1_json_unmarshal

func AnonymousMap_map1_json_unmarshal(iter *jsoniter.Iterator, out *map[string]string)

func AnonymousMap_map2_json_marshal

func AnonymousMap_map2_json_marshal(stream *jsoniter.Stream, val map[string]string)

func AnonymousStruct_json_marshal

func AnonymousStruct_json_marshal(stream *jsoniter.Stream, val AnonymousStruct)

func AnonymousStruct_json_marshal_field

func AnonymousStruct_json_marshal_field(stream *jsoniter.Stream, val AnonymousStruct)

func AnonymousStruct_json_unmarshal

func AnonymousStruct_json_unmarshal(iter *jsoniter.Iterator, out *AnonymousStruct)

func AnonymousStruct_json_unmarshal_field

func AnonymousStruct_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *AnonymousStruct) bool

func AnonymousStruct_struct1_json_unmarshal

func AnonymousStruct_struct1_json_unmarshal(iter *jsoniter.Iterator, out *struct {
	Name  string
	Price int
})

func AnonymousStruct_struct1_json_unmarshal_field

func AnonymousStruct_struct1_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *struct {
	Name  string
	Price int
}) bool

func AnonymousStruct_struct2_json_marshal

func AnonymousStruct_struct2_json_marshal(stream *jsoniter.Stream, val struct {
	Name  string
	Price int
})

func AnonymousStruct_struct2_json_marshal_field

func AnonymousStruct_struct2_json_marshal_field(stream *jsoniter.Stream, val struct {
	Name  string
	Price int
})

func DoublePtr_json_marshal

func DoublePtr_json_marshal(stream *jsoniter.Stream, val DoublePtr)

func DoublePtr_json_marshal_field

func DoublePtr_json_marshal_field(stream *jsoniter.Stream, val DoublePtr)

func DoublePtr_json_unmarshal

func DoublePtr_json_unmarshal(iter *jsoniter.Iterator, out *DoublePtr)

func DoublePtr_json_unmarshal_field

func DoublePtr_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *DoublePtr) bool

func DoublePtr_ptr1_json_unmarshal

func DoublePtr_ptr1_json_unmarshal(iter *jsoniter.Iterator, out **string)

func EmbedNumberStruct_json_marshal

func EmbedNumberStruct_json_marshal(stream *jsoniter.Stream, val EmbedNumberStruct)

func EmbedNumberStruct_json_marshal_field

func EmbedNumberStruct_json_marshal_field(stream *jsoniter.Stream, val EmbedNumberStruct)

func EmbedNumberStruct_json_unmarshal

func EmbedNumberStruct_json_unmarshal(iter *jsoniter.Iterator, out *EmbedNumberStruct)

func EmbedNumberStruct_json_unmarshal_field

func EmbedNumberStruct_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *EmbedNumberStruct) bool

func EmptyStruct_json_marshal

func EmptyStruct_json_marshal(stream *jsoniter.Stream, val EmptyStruct)

func EmptyStruct_json_marshal_field

func EmptyStruct_json_marshal_field(stream *jsoniter.Stream, val EmptyStruct)

func EmptyStruct_json_unmarshal

func EmptyStruct_json_unmarshal(iter *jsoniter.Iterator, out *EmptyStruct)

func EmptyStruct_json_unmarshal_field

func EmptyStruct_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *EmptyStruct) bool

func IntKeyMap_json_marshal

func IntKeyMap_json_marshal(stream *jsoniter.Stream, val IntKeyMap)

func IntKeyMap_json_marshal_field

func IntKeyMap_json_marshal_field(stream *jsoniter.Stream, val IntKeyMap)

func IntKeyMap_json_unmarshal

func IntKeyMap_json_unmarshal(iter *jsoniter.Iterator, out *IntKeyMap)

func IntKeyMap_json_unmarshal_field

func IntKeyMap_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *IntKeyMap) bool

func NamedArray_json_marshal

func NamedArray_json_marshal(stream *jsoniter.Stream, val NamedArray)

func NamedArray_json_marshal_field

func NamedArray_json_marshal_field(stream *jsoniter.Stream, val NamedArray)

func NamedArray_json_unmarshal

func NamedArray_json_unmarshal(iter *jsoniter.Iterator, out *NamedArray)

func NamedArray_json_unmarshal_field

func NamedArray_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *NamedArray) bool

func NamedMap_json_marshal

func NamedMap_json_marshal(stream *jsoniter.Stream, val NamedMap)

func NamedMap_json_marshal_field

func NamedMap_json_marshal_field(stream *jsoniter.Stream, val NamedMap)

func NamedMap_json_unmarshal

func NamedMap_json_unmarshal(iter *jsoniter.Iterator, out *NamedMap)

func NamedMap_json_unmarshal_field

func NamedMap_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *NamedMap) bool

func NamedPtr_json_marshal

func NamedPtr_json_marshal(stream *jsoniter.Stream, val NamedPtr)

func NamedPtr_json_marshal_field

func NamedPtr_json_marshal_field(stream *jsoniter.Stream, val NamedPtr)

func NamedPtr_json_unmarshal

func NamedPtr_json_unmarshal(iter *jsoniter.Iterator, out *NamedPtr)

func NamedPtr_json_unmarshal_field

func NamedPtr_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *NamedPtr) bool

func NamedStruct_json_marshal

func NamedStruct_json_marshal(stream *jsoniter.Stream, val NamedStruct)

func NamedStruct_json_marshal_field

func NamedStruct_json_marshal_field(stream *jsoniter.Stream, val NamedStruct)

func NamedStruct_json_unmarshal

func NamedStruct_json_unmarshal(iter *jsoniter.Iterator, out *NamedStruct)

func NamedStruct_json_unmarshal_field

func NamedStruct_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *NamedStruct) bool

func NamedStruct_ptr1_json_unmarshal

func NamedStruct_ptr1_json_unmarshal(iter *jsoniter.Iterator, out **json.Number)

func NestedArray_array1_json_unmarshal

func NestedArray_array1_json_unmarshal(iter *jsoniter.Iterator, out *[2]float64)

func NestedArray_array2_json_marshal

func NestedArray_array2_json_marshal(stream *jsoniter.Stream, val [2]float64)

func NestedArray_json_marshal

func NestedArray_json_marshal(stream *jsoniter.Stream, val NestedArray)

func NestedArray_json_marshal_field

func NestedArray_json_marshal_field(stream *jsoniter.Stream, val NestedArray)

func NestedArray_json_unmarshal

func NestedArray_json_unmarshal(iter *jsoniter.Iterator, out *NestedArray)

func NestedArray_json_unmarshal_field

func NestedArray_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *NestedArray) bool

func RefNamedArray_json_marshal

func RefNamedArray_json_marshal(stream *jsoniter.Stream, val RefNamedArray)

func RefNamedArray_json_marshal_field

func RefNamedArray_json_marshal_field(stream *jsoniter.Stream, val RefNamedArray)

func RefNamedArray_json_unmarshal

func RefNamedArray_json_unmarshal(iter *jsoniter.Iterator, out *RefNamedArray)

func RefNamedArray_json_unmarshal_field

func RefNamedArray_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *RefNamedArray) bool

func WithEmbedStructBase1_json_marshal

func WithEmbedStructBase1_json_marshal(stream *jsoniter.Stream, val WithEmbedStructBase1)

func WithEmbedStructBase1_json_marshal_field

func WithEmbedStructBase1_json_marshal_field(stream *jsoniter.Stream, val WithEmbedStructBase1)

func WithEmbedStructBase1_json_unmarshal

func WithEmbedStructBase1_json_unmarshal(iter *jsoniter.Iterator, out *WithEmbedStructBase1)

func WithEmbedStructBase1_json_unmarshal_field

func WithEmbedStructBase1_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithEmbedStructBase1) bool

func WithEmbedStructBase2_json_marshal

func WithEmbedStructBase2_json_marshal(stream *jsoniter.Stream, val WithEmbedStructBase2)

func WithEmbedStructBase2_json_marshal_field

func WithEmbedStructBase2_json_marshal_field(stream *jsoniter.Stream, val WithEmbedStructBase2)

func WithEmbedStructBase2_json_unmarshal

func WithEmbedStructBase2_json_unmarshal(iter *jsoniter.Iterator, out *WithEmbedStructBase2)

func WithEmbedStructBase2_json_unmarshal_field

func WithEmbedStructBase2_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithEmbedStructBase2) bool

func WithEmbedStruct_json_marshal

func WithEmbedStruct_json_marshal(stream *jsoniter.Stream, val WithEmbedStruct)

func WithEmbedStruct_json_marshal_field

func WithEmbedStruct_json_marshal_field(stream *jsoniter.Stream, val WithEmbedStruct)

func WithEmbedStruct_json_unmarshal

func WithEmbedStruct_json_unmarshal(iter *jsoniter.Iterator, out *WithEmbedStruct)

func WithEmbedStruct_json_unmarshal_field

func WithEmbedStruct_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithEmbedStruct) bool

func WithNamelessField_f1_json_marshal

func WithNamelessField_f1_json_marshal(stream *jsoniter.Stream, val WithNamelessField_f1)

func WithNamelessField_f1_json_marshal_field

func WithNamelessField_f1_json_marshal_field(stream *jsoniter.Stream, val WithNamelessField_f1)

func WithNamelessField_f1_json_unmarshal

func WithNamelessField_f1_json_unmarshal(iter *jsoniter.Iterator, out *WithNamelessField_f1)

func WithNamelessField_f1_json_unmarshal_field

func WithNamelessField_f1_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithNamelessField_f1) bool

func WithNamelessField_f2_json_marshal

func WithNamelessField_f2_json_marshal(stream *jsoniter.Stream, val WithNamelessField_f2)

func WithNamelessField_f2_json_marshal_field

func WithNamelessField_f2_json_marshal_field(stream *jsoniter.Stream, val WithNamelessField_f2)

func WithNamelessField_f2_json_unmarshal

func WithNamelessField_f2_json_unmarshal(iter *jsoniter.Iterator, out *WithNamelessField_f2)

func WithNamelessField_f2_json_unmarshal_field

func WithNamelessField_f2_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithNamelessField_f2) bool

func WithNamelessField_json_marshal

func WithNamelessField_json_marshal(stream *jsoniter.Stream, val WithNamelessField)

func WithNamelessField_json_marshal_field

func WithNamelessField_json_marshal_field(stream *jsoniter.Stream, val WithNamelessField)

func WithNamelessField_json_unmarshal

func WithNamelessField_json_unmarshal(iter *jsoniter.Iterator, out *WithNamelessField)

func WithNamelessField_json_unmarshal_field

func WithNamelessField_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithNamelessField) bool

func WithStructTag_json_marshal

func WithStructTag_json_marshal(stream *jsoniter.Stream, val WithStructTag)

func WithStructTag_json_marshal_field

func WithStructTag_json_marshal_field(stream *jsoniter.Stream, val WithStructTag)

func WithStructTag_json_unmarshal

func WithStructTag_json_unmarshal(iter *jsoniter.Iterator, out *WithStructTag)

func WithStructTag_json_unmarshal_field

func WithStructTag_json_unmarshal_field(iter *jsoniter.Iterator, field string, out *WithStructTag) bool

Types

type AnonymousArray

type AnonymousArray struct {
	Value []string
}

type AnonymousArray_json

type AnonymousArray_json struct {
}

func (AnonymousArray_json) Marshal

func (json AnonymousArray_json) Marshal(stream *jsoniter.Stream, val interface{})

func (AnonymousArray_json) Type

func (json AnonymousArray_json) Type() interface{}

func (AnonymousArray_json) Unmarshal

func (json AnonymousArray_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type AnonymousMap

type AnonymousMap struct {
	Value map[string]string
}

type AnonymousMap_json

type AnonymousMap_json struct {
}

func (AnonymousMap_json) Marshal

func (json AnonymousMap_json) Marshal(stream *jsoniter.Stream, val interface{})

func (AnonymousMap_json) Type

func (json AnonymousMap_json) Type() interface{}

func (AnonymousMap_json) Unmarshal

func (json AnonymousMap_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type AnonymousStruct

type AnonymousStruct struct {
	Value struct {
		Name  string
		Price int
	}
}

type AnonymousStruct_json

type AnonymousStruct_json struct {
}

func (AnonymousStruct_json) Marshal

func (json AnonymousStruct_json) Marshal(stream *jsoniter.Stream, val interface{})

func (AnonymousStruct_json) Type

func (json AnonymousStruct_json) Type() interface{}

func (AnonymousStruct_json) Unmarshal

func (json AnonymousStruct_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type DoublePtr

type DoublePtr = **string

type DoublePtr_json

type DoublePtr_json struct {
}

func (DoublePtr_json) Marshal

func (json DoublePtr_json) Marshal(stream *jsoniter.Stream, val interface{})

func (DoublePtr_json) Type

func (json DoublePtr_json) Type() interface{}

func (DoublePtr_json) Unmarshal

func (json DoublePtr_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type EmbedNumberStruct

type EmbedNumberStruct struct {
	json.Number
}

type EmbedNumberStruct_json

type EmbedNumberStruct_json struct {
}

func (EmbedNumberStruct_json) Marshal

func (json EmbedNumberStruct_json) Marshal(stream *jsoniter.Stream, val interface{})

func (EmbedNumberStruct_json) Type

func (json EmbedNumberStruct_json) Type() interface{}

func (EmbedNumberStruct_json) Unmarshal

func (json EmbedNumberStruct_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type EmptyStruct

type EmptyStruct struct {
}

type EmptyStruct_json

type EmptyStruct_json struct {
}

func (EmptyStruct_json) Marshal

func (json EmptyStruct_json) Marshal(stream *jsoniter.Stream, val interface{})

func (EmptyStruct_json) Type

func (json EmptyStruct_json) Type() interface{}

func (EmptyStruct_json) Unmarshal

func (json EmptyStruct_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type IntKeyMap

type IntKeyMap = map[int]string

type IntKeyMap_json

type IntKeyMap_json struct {
}

func (IntKeyMap_json) Marshal

func (json IntKeyMap_json) Marshal(stream *jsoniter.Stream, val interface{})

func (IntKeyMap_json) Type

func (json IntKeyMap_json) Type() interface{}

func (IntKeyMap_json) Unmarshal

func (json IntKeyMap_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type NamedArray

type NamedArray = []string

type NamedArray_json

type NamedArray_json struct {
}

func (NamedArray_json) Marshal

func (json NamedArray_json) Marshal(stream *jsoniter.Stream, val interface{})

func (NamedArray_json) Type

func (json NamedArray_json) Type() interface{}

func (NamedArray_json) Unmarshal

func (json NamedArray_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type NamedMap

type NamedMap = map[string]int

type NamedMap_json

type NamedMap_json struct {
}

func (NamedMap_json) Marshal

func (json NamedMap_json) Marshal(stream *jsoniter.Stream, val interface{})

func (NamedMap_json) Type

func (json NamedMap_json) Type() interface{}

func (NamedMap_json) Unmarshal

func (json NamedMap_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type NamedPtr

type NamedPtr = *string

type NamedPtr_json

type NamedPtr_json struct {
}

func (NamedPtr_json) Marshal

func (json NamedPtr_json) Marshal(stream *jsoniter.Stream, val interface{})

func (NamedPtr_json) Type

func (json NamedPtr_json) Type() interface{}

func (NamedPtr_json) Unmarshal

func (json NamedPtr_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type NamedStruct

type NamedStruct struct {
	Name  string
	Price *json.Number
	Raw   json.RawMessage
	// contains filtered or unexported fields
}

type NamedStruct_json

type NamedStruct_json struct {
}

func (NamedStruct_json) Marshal

func (json NamedStruct_json) Marshal(stream *jsoniter.Stream, val interface{})

func (NamedStruct_json) Type

func (json NamedStruct_json) Type() interface{}

func (NamedStruct_json) Unmarshal

func (json NamedStruct_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type NestedArray

type NestedArray = [][2]float64

type NestedArray_json

type NestedArray_json struct {
}

func (NestedArray_json) Marshal

func (json NestedArray_json) Marshal(stream *jsoniter.Stream, val interface{})

func (NestedArray_json) Type

func (json NestedArray_json) Type() interface{}

func (NestedArray_json) Unmarshal

func (json NestedArray_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type RefNamedArray

type RefNamedArray struct {
	Value NamedArray
}

type RefNamedArray_json

type RefNamedArray_json struct {
}

func (RefNamedArray_json) Marshal

func (json RefNamedArray_json) Marshal(stream *jsoniter.Stream, val interface{})

func (RefNamedArray_json) Type

func (json RefNamedArray_json) Type() interface{}

func (RefNamedArray_json) Unmarshal

func (json RefNamedArray_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithEmbedStruct

type WithEmbedStruct struct {
	*WithEmbedStructBase1
	WithEmbedStructBase2
	Field3 string
}

type WithEmbedStructBase1

type WithEmbedStructBase1 struct {
	Field1 string
}

type WithEmbedStructBase1_json

type WithEmbedStructBase1_json struct {
}

func (WithEmbedStructBase1_json) Marshal

func (json WithEmbedStructBase1_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithEmbedStructBase1_json) Type

func (json WithEmbedStructBase1_json) Type() interface{}

func (WithEmbedStructBase1_json) Unmarshal

func (json WithEmbedStructBase1_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithEmbedStructBase2

type WithEmbedStructBase2 struct {
	Field2 string
}

type WithEmbedStructBase2_json

type WithEmbedStructBase2_json struct {
}

func (WithEmbedStructBase2_json) Marshal

func (json WithEmbedStructBase2_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithEmbedStructBase2_json) Type

func (json WithEmbedStructBase2_json) Type() interface{}

func (WithEmbedStructBase2_json) Unmarshal

func (json WithEmbedStructBase2_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithEmbedStruct_json

type WithEmbedStruct_json struct {
}

func (WithEmbedStruct_json) Marshal

func (json WithEmbedStruct_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithEmbedStruct_json) Type

func (json WithEmbedStruct_json) Type() interface{}

func (WithEmbedStruct_json) Unmarshal

func (json WithEmbedStruct_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithNamelessField

type WithNamelessField struct {
	WithNamelessField_f1
	*WithNamelessField_f2
	// contains filtered or unexported fields
}

type WithNamelessField_f1

type WithNamelessField_f1 float64

type WithNamelessField_f1_json

type WithNamelessField_f1_json struct {
}

func (WithNamelessField_f1_json) Marshal

func (json WithNamelessField_f1_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithNamelessField_f1_json) Type

func (json WithNamelessField_f1_json) Type() interface{}

func (WithNamelessField_f1_json) Unmarshal

func (json WithNamelessField_f1_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithNamelessField_f2

type WithNamelessField_f2 bool

type WithNamelessField_f2_json

type WithNamelessField_f2_json struct {
}

func (WithNamelessField_f2_json) Marshal

func (json WithNamelessField_f2_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithNamelessField_f2_json) Type

func (json WithNamelessField_f2_json) Type() interface{}

func (WithNamelessField_f2_json) Unmarshal

func (json WithNamelessField_f2_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithNamelessField_json

type WithNamelessField_json struct {
}

func (WithNamelessField_json) Marshal

func (json WithNamelessField_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithNamelessField_json) Type

func (json WithNamelessField_json) Type() interface{}

func (WithNamelessField_json) Unmarshal

func (json WithNamelessField_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

type WithStructTag

type WithStructTag struct {
	Field1 string `json:"field1"`
	Field2 string `json:"-"`
}

type WithStructTag_json

type WithStructTag_json struct {
}

func (WithStructTag_json) Marshal

func (json WithStructTag_json) Marshal(stream *jsoniter.Stream, val interface{})

func (WithStructTag_json) Type

func (json WithStructTag_json) Type() interface{}

func (WithStructTag_json) Unmarshal

func (json WithStructTag_json) Unmarshal(iter *jsoniter.Iterator, out interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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