Documentation
¶
Index ¶
Constants ¶
const LWTimestampFormat = "2006-01-02 15:04:05"
LWTimestampFormat is Liquid Web's timestamp format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlexInt ¶
type FlexInt int
FlexInt was shamelessly stolen from Chris to handle inconsistencies in the API returning numerical versus string IDs.
func (*FlexInt) UnmarshalJSON ¶
UnmarshalJSON handles the unmarshalling of the FlexInt type.
type IPAddr ¶
IPAddr uses net.IP but supports Marshal/Unmarshal.
func (*IPAddr) MarshalJSON ¶
MarshalJSON marshalls the IPAddr type.
func (*IPAddr) UnmarshalJSON ¶
UnmarshalJSON unmarshals the IPAddr type.
type NumericalBoolean ¶
type NumericalBoolean bool
NumericalBoolean handles booleans in the API being returned as
func (*NumericalBoolean) UnmarshalJSON ¶
func (nb *NumericalBoolean) UnmarshalJSON(d []byte) error
UnmarshalJSON handles the unmarshalling of the NumericalBoolean type.
type Timestamp ¶
Timestamp implements Liquid Web's custom timestamp format.
func NewTimestamp ¶
NewTimestamp accepts a string and returns a new Timestamp.
func (*Timestamp) MarshalJSON ¶
MarshalJSON marshalls the Timestamp type.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON parses Liquid Web's timestamp format.