Documentation
¶
Overview ¶
Package null implements nullable types for use with Discord's API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
Bool is a nullable boolean.
func (Bool) MarshalJSON ¶
MarshalJSON marshals b into JSON.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON unmarshals raw into b.
type Int ¶
Int is a nullable int.
func (Int) MarshalJSON ¶
MarshalJSON marshals i into JSON.
func (*Int) UnmarshalJSON ¶
UnmarshalJSON unmarshals b into i.
type String ¶
String is a nullable JSON string.
func NewNullString ¶
func NewNullString() String
NewNullString creates a nullable String that is set to null.
func StringFrom ¶
StringFrom creates a nullable String from the given value.
func (String) MarshalJSON ¶
MarshalJSON marshals s into JSON.
func (*String) UnmarshalJSON ¶
UnmarshalJSON unmarshals b into s.
Click to show internal directories.
Click to hide internal directories.