Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Json ¶ added in v1.2.123
type Json[T any] struct { Data T // must be set with a pointer to zero value of expect type }
Json represents an interface that can not be null. Json implements the Scanner interface so it can be used as a scan destination, similar to sql.NullString.
type NullJson ¶
type NullJson[T any] struct { Data T // must be set with a pointer to zero value of expect type Valid bool // Valid is true if Data is not NULL }
NullJson represents an interface that may be null. NullJson implements the Scanner interface so it can be used as a scan destination, similar to sql.NullString.
Click to show internal directories.
Click to hide internal directories.