tests

package
v0.0.0-...-4534d5e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 OmitEmptyDefault struct {
	Field string
	Str   string
	Str1  string `json:"s,!omitempty"`
	Str2  string `json:",!omitempty"`
}

type Opts

type Opts struct {
	StrNull      opt.String
	StrEmpty     opt.String
	Str          opt.String
	StrOmitempty opt.String `json:",omitempty"`

	IntNull opt.Int
	IntZero opt.Int
	Int     opt.Int
}

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

	Float32 float32
	Float64 float64

	Ptr    *string
	PtrNil *string
}

type Raw

type Raw struct {
	Field  easyjson.RawMessage
	Field2 string
}

type SnakeStruct

type SnakeStruct struct {
	WeirdHTTPStuff   bool
	CustomNamedField string `json:"cUsToM"`
}

type StdMarshaler

type StdMarshaler struct {
	T time.Time
}

type Structs

type Structs struct {
	SubStruct
	Value2 int

	Sub1      SubStruct `json:"substruct"`
	Sub2      *SubStruct
	SubNil    *SubStruct
	Anonymous struct {
		V string
		I int
	}
	Anonymous1 *struct {
		V string
	}
	// contains filtered or unexported fields
}

type SubStruct

type SubStruct struct {
	Value  string
	Value2 string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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