Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAlias ¶
type BasicAlias string // string alias
type BasicPtrAlias ¶
type BasicPtrAlias *string // pointer to string alias
type CartItem ¶
type CartItem struct { ItemName string `json:"name"` Quantity float64 `json:"howMuch"` PriceTag Price `json:"price"` Tax *Price `json:"tax"` Images *SliceOfPointersToAlias `json:"images"` // pointer to slice of pointer to alias }
type ClassicSlice ¶
type ClassicSlice []Price // classic slice
type EmbeddedField ¶
type EmbeddedField struct { Name string `json:"buyer"` Phone *string `json:"mobile"` AliasField ExternalAlias `json:"timer"` ImportedField time.Time `json:"importedField"` }
type EmbeddedPtrField ¶
type EmbeddedPtrField struct { Name string `json:"customer"` Phone *string `json:"mobile"` AliasField ExternalPtrAlias `json:"timer"` ImportedField *time.Time `json:"importedField"` }
type ExternalAlias ¶
type ExternalPtrAlias ¶
type ExternalSliceOfPointers ¶
times comment @time.Time
type NormalStruct ¶
type NormalStruct struct {
Name string `json:"potName"`
}
type SliceOfPointers ¶
type SliceOfPointers []*CartItem // slice of pointers
type SliceOfPointersToAlias ¶
type SliceOfPointersToAlias []*BasicAlias // slice of pointer to alias
type TestData ¶
type TestData struct { // basic fields StringField string `json:"string_value"` StringPtr *string `json:"a_StringPtr"` StructField NormalStruct `json:"-"` // normal struct Bool bool `json:"boolean_value"` BoolPtr *bool `json:"a_BoolPtr"` Int int `json:"int_value"` IntPtr *int `json:"a_IntPtr"` Int8 int8 `json:"int8_value"` Int8Ptr *int8 `json:"a_Int8Ptr"` Int16 int16 `json:"int16_value"` Int16Ptr *int16 `json:"a_Int16Ptr"` Int32 int32 `json:"int32_value"` Int32Ptr *int32 `json:"a_Int32Ptr"` Int64 int64 `json:"int64_value"` Int64Ptr *int64 `json:"a_Int64Ptr"` Uint uint `json:"uint_value"` UintPtr *uint `json:"a_UintPtr"` Uint8 uint8 `json:"uint8_value"` Uint8Ptr *uint8 `json:"a_Uint8Ptr"` Uint16 uint16 `json:"uint16_value"` Uint16Ptr *uint16 `json:"a_Uint16Ptr"` Uint32 uint32 `json:"uint32_value"` Uint32Ptr *uint32 `json:"a_Uint32Ptr"` Uint64 uint64 `json:"uint64_value"` Uint64Ptr *uint64 `json:"a_Uint64Ptr"` Float32 float32 `json:"float32_value"` Float32Ptr *float32 `json:"a_Float32Ptr"` Float64 float64 `json:"float64_value"` Float64Ptr *float64 `json:"a_Float64Ptr"` TimeField time.Time `json:"purchaseDate"` // time field PtrTimeField *time.Time `json:"emptyTime"` // pointer to time SliceOfPointersField SliceOfPointers `json:"items"` // normal slice PtrToClassicSliceField *ClassicSlice `json:"appliedTaxes"` // pointer to slice ExternalSliceOfPointersField ExternalSliceOfPointers `json:"arrayOfPtrToTimeDotTime"` // slice of fields from another package EmbeddedField // embedded struct *EmbeddedPtrField // pointer to embedded struct }
Click to show internal directories.
Click to hide internal directories.