Version: v0.0.0-...-4d72670 Latest Latest

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 1 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type BasicTypes

type BasicTypes struct {
	BoolField       bool       `json:"bool_field"`
	UintField       uint       `json:"uint_field"`
	Uint8Field      uint8      `json:"uint8_field"`
	Uint16Field     uint16     `json:"uint16_field"`
	Uint32Field     uint32     `json:"uint32_field"`
	Uint64Field     uint64     `json:"uint64_field"`
	IntField        int        `json:"int_field"`
	Int8Field       int8       `json:"int8_field"`
	Int16Field      int16      `json:"int16_field"`
	Int32Field      int32      `json:"int32_field"`
	Int64Field      int64      `json:"int64_field"`
	UintptrField    uintptr    `json:"uintptr_field"`
	Float32Field    float32    `json:"float32_field"`
	Float64Field    float64    `json:"float64_field"`
	StringField     string     `json:"string_field"`
	Complex64Field  complex64  `json:"complex64_field"`
	Complex128Field complex128 `json:"complex128_field"`
	ByteField       byte       `json:"byte_field"`
	RuneField       rune       `json:"rune_field"`
	TimeField       time.Time  `json:"time_field"`

BasicTypes defines basic types

type NormalStruct

type NormalStruct struct {
	BasicTypes *BasicTypes `json:"basic_types"`
	Number     int         `json:"number"`
	Create     time.Time   `json:"create"`

NormalStruct defines normal struct

type StructWithAnonymousField

type StructWithAnonymousField struct {
	AnonymousStruct *struct {
		StringField string `json:"string_field"`
		BoolField   bool   `json:"bool_field"`
	} `json:"anonymous_struct"`
	AnonymousMap map[string]*struct {
		StringField string `json:"string_field"`
		BoolField   bool   `json:"bool_field"`
	} `json:"anonymous_map"`
	AnonymousArray []*struct {
		StringField string `json:"string_field"`
		BoolField   bool   `json:"bool_field"`
	} `json:"anonymous_array"`

StructWithAnonymousField defines struct with anonymous field

type StructWithCircularReference

type StructWithCircularReference struct {
	CircularReference *StructWithCircularReference `json:"circular_reference"`

StructWithCircularReference defines struct with circular reference

type StructWithInheritance

type StructWithInheritance struct {
	*NormalStruct `json:"normal_struct"`

StructWithInheritance defines struct with inheritance

type StructWithNoExportField

type StructWithNoExportField struct {
	Create time.Time `json:"-"`
	// contains filtered or unexported fields

StructWithNoExportField defines struct with no export field

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL