Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseEncoding ¶
func BaseEncoding() error
BaseEncoding shows encoding and decoding with normal types
func NullEncoding ¶
func NullEncoding() error
NullEncoding shows an alternative method for dealing with nil/omitted values
func PointerEncoding ¶
func PointerEncoding() error
PointerEncoding shows methods for dealing with nil/omitted values
Types ¶
type ExampleNullInt ¶
type ExampleNullInt struct { Age *nullInt64 `json:"age,omitempty"` Name string `json:"name"` }
ExampleNullInt is the same, but uses a sql.NullInt64
type ExamplePointer ¶
ExamplePointer is the same, but uses a *Int
Click to show internal directories.
Click to hide internal directories.