Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NullBool ¶
NullBool constructs an sql.NullBool from a regular bool. The Valid field is always set to true as a non-null bool is being provided.
func NullFloat64 ¶
func NullFloat64(v float64) sql.NullFloat64
NullFloat64 constructs an sql.NullFloat64 from a regular float64. It sets the Valid field to true if the provided float64 is not NaN (Not-a-Number).
func NullString ¶
func NullString(v string) sql.NullString
NullString constructs a sql.NullString from a regular string. It sets the Valid field to true if the provided string is not empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.