Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectionType ¶
type DirectionType int
DirectionType is an Enum.
const ( DirectionUp DirectionType = iota DirectionDown DirectionLeft DirectionRight )
func DirectionTypeFromString ¶
func DirectionTypeFromString(s string) (DirectionType, error)
DirectionTypeFromString returns a DirectionType from it's string representation.
func (DirectionType) MarshalJSON ¶
func (v DirectionType) MarshalJSON() ([]byte, error)
MarshalJSON marshalls the DirectionType enum to it's JSON representation.
func (DirectionType) String ¶
func (v DirectionType) String() string
func (*DirectionType) UnmarshalJSON ¶
func (v *DirectionType) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshalls the JSON to it's DirectionType enum.
func (DirectionType) Valid ¶
func (v DirectionType) Valid() bool
Valid returns false if the DirectionType isn't valid.
type PostType ¶
type PostType int
PostType is an Enum.
func PostTypeFromString ¶
PostTypeFromString returns a PostType from it's string representation.
func (PostType) MarshalJSON ¶
MarshalJSON marshalls the PostType enum to it's JSON representation.
func (*PostType) UnmarshalJSON ¶
UnmarshalJSON unmarshalls the JSON to it's PostType enum.
Click to show internal directories.
Click to hide internal directories.