Documentation ¶
Overview ¶
Package zstring implements functions for booleans.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool bool
Bool converts various types to a boolean.
It's always stored as an integer in the database (the only cross-platform way in SQL).
Supported types:
bool int* and float* 0 or 1 []byte and string "1", "true", "on", "0", "false", "off" nil defaults to false
func (Bool) MarshalJSON ¶
MarshalJSON converts the data to JSON.
func (Bool) MarshalText ¶
MarshalText converts the data to a human readable representation.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON converts the data from JSON.
func (*Bool) UnmarshalText ¶
UnmarshalText parses text in to the Go data structure.
Click to show internal directories.
Click to hide internal directories.