Documentation ¶
Index ¶
- Variables
- type Arrays
- type CustomMapKeyType
- type DeepNest
- type DisallowUnknown
- type EmbeddedInnerType
- type EmbeddedInnerType2
- type EmbeddedStruct
- type EmbeddedType
- type EncodingFlagsTestMap
- type EncodingFlagsTestSlice
- type ErrorBoolSlice
- type ErrorIntMap
- type ErrorIntSlice
- type ErrorNestedStruct
- type ErrorStruct
- type ErrorUintSlice
- type ExcludedField
- type IntArray
- type IntArrayStruct
- type IntKeyedMapStruct
- type Ints
- type MapInt32String
- type MapInt64String
- type MapIntString
- type MapMyIntString
- type MapStringString
- type MapUint32String
- type MapUint64String
- type MapUintString
- type MapUintptrString
- type Maps
- type MyInt
- type MyString
- type MyUInt8
- type MyUInt8Array
- type MyUInt8Slice
- type NamedBool
- type NamedFloat32
- type NamedFloat64
- type NamedInt
- type NamedInt16
- type NamedInt32
- type NamedInt64
- type NamedInt8
- type NamedMap
- type NamedPrimitiveTypes
- type NamedSlice
- type NamedStrPtr
- type NamedString
- type NamedType
- type NamedUint
- type NamedUint16
- type NamedUint32
- type NamedUint64
- type NamedUint8
- type NestedEasyMarshaler
- type NestedInterfaces
- type OmitEmpty
- type OmitEmptyDefault
- type Opts
- type PrimitiveTypes
- type Raw
- type RequiredOptionalStruct
- type Slices
- type SnakeStruct
- type StdMarshaler
- type Str
- type Struct1
- type Struct2
- type StructWithInterface
- type Structs
- type SubP
- type SubStruct
- type SubStructAlias
- type UserMarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var IntsString = `[1,2,3,4,5]`
View Source
var IntsValue = Ints{1, 2, 3, 4, 5}
Functions ¶
This section is empty.
Types ¶
type Arrays ¶
type DeepNest ¶
type DeepNest struct { SliceMap map[Str][]Str SliceMap1 map[Str][]Str SliceMap2 map[Str][]Str NamedSliceMap map[Str]NamedSlice NamedMapMap map[Str]NamedMap MapSlice []map[Str]Str NamedSliceSlice []NamedSlice NamedMapSlice []NamedMap NamedStringSlice []NamedString }
type EmbeddedStruct ¶
type EmbeddedType ¶
type EmbeddedType struct { EmbeddedInnerType Inner struct { EmbeddedInnerType } Field2 int EmbeddedInnerType2 `json:"named"` }
type ErrorNestedStruct ¶
type ErrorNestedStruct struct { ErrorStruct ErrorStruct `json:"error_struct"` Int int `json:"int"` }
type ErrorStruct ¶
type ExcludedField ¶
type IntArrayStruct ¶
type IntKeyedMapStruct ¶
type IntKeyedMapStruct struct { Foo MapMyIntString `json:"foo"` Bar map[int16]MapUint32String `json:"bar"` }
type Maps ¶
type NamedPrimitiveTypes ¶
type NamedPrimitiveTypes struct { String NamedString Bool NamedBool Int NamedInt Int8 NamedInt8 Int16 NamedInt16 Int32 NamedInt32 Int64 NamedInt64 Uint NamedUint Uint8 NamedUint8 Uint16 NamedUint16 Uint32 NamedUint32 Uint64 NamedUint64 Float32 NamedFloat32 Float64 NamedFloat64 Ptr NamedStrPtr PtrNil NamedStrPtr }
type NamedType ¶
type NestedEasyMarshaler ¶
type NestedEasyMarshaler struct {
EasilyMarshaled bool
}
func (*NestedEasyMarshaler) MarshalEasyJSON ¶
func (i *NestedEasyMarshaler) MarshalEasyJSON(w *jwriter.Writer)
type NestedInterfaces ¶
type NestedInterfaces struct { Value interface{} Slice []interface{} Map map[string]interface{} }
type OmitEmpty ¶
type OmitEmpty struct {
StrE, StrNE string `json:",omitempty"`
PtrE, PtrNE *string `json:",omitempty"`
IntNE int `json:"intField,omitempty"`
IntE int `json:",omitempty"`
// NOTE: omitempty has no effect on non-pointer struct fields.
SubE, SubNE SubStruct `json:",omitempty"`
SubPE, SubPNE *SubStruct `json:",omitempty"`
}
type OmitEmptyDefault ¶
type Opts ¶
type PrimitiveTypes ¶
type PrimitiveTypes struct { String string Bool bool Int int Int8 int8 Int16 int16 Int32 int32 Int64 int64 Uint uint Uint8 uint8 Uint16 uint16 Uint32 uint32 Uint64 uint64 IntString int `json:",string"` Int8String int8 `json:",string"` Int16String int16 `json:",string"` Int32String int32 `json:",string"` Int64String int64 `json:",string"` UintString uint `json:",string"` Uint8String uint8 `json:",string"` Uint16String uint16 `json:",string"` Uint32String uint32 `json:",string"` Uint64String uint64 `json:",string"` Float32 float32 Float64 float64 Float32String float32 `json:",string"` Float64String float64 `json:",string"` Ptr *string PtrNil *string }
type Raw ¶
type Raw struct { Field easyjson.RawMessage Field2 string }
type RequiredOptionalStruct ¶
type Slices ¶
type SnakeStruct ¶
type Struct1 ¶
type Struct1 struct { }
type Struct2 ¶
type StructWithInterface ¶
type Structs ¶
type Structs struct { SubStruct *SubP Value2 int Sub1 SubStruct `json:"substruct"` Sub2 *SubStruct SubNil *SubStruct SubSlice []SubStruct SubSliceNil []SubStruct SubPtrSlice []*SubStruct SubPtrSliceNil []*SubStruct SubA1 SubStructAlias SubA2 *SubStructAlias Anonymous struct { V string I int } Anonymous1 *struct { V string } AnonymousSlice []struct{ V int } AnonymousPtrSlice []*struct{ V int } Slice []string // contains filtered or unexported fields }
type SubStruct ¶
type UserMarshaler ¶
type UserMarshaler struct { V vMarshaler T tMarshaler }
Click to show internal directories.
Click to hide internal directories.