Documentation ¶
Overview ¶
Package opt defines optional types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool string
Bool represents an optional boolean to be JSON-encoded. The string can be empty (for unknown or unspecified), or "true" or "false".
func (Bool) EqualBool ¶ added in v0.100.0
EqualBool reports whether b is equal to v. If b is empty or not a valid bool, it reports false.
func (Bool) MarshalJSON ¶
func (*Bool) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.