Documentation ¶
Index ¶
Constants ¶
View Source
const SnowflakeBufferSize = 66
Variables ¶
This section is empty.
Functions ¶
func DecodeSnowflake ¶
DecodeSnowflake attempts to decode a JSON representation of a Snowflake via gojay.
This method may return nil if the input json value was `null`.
func NewSnowflake ¶
func NewSnowflake() Snowflake
func UnmarshalJSONSnowflake ¶
UnmarshalJSONSnowflake attempts to unmarshal a JSON representation of a Snowflake via the standard library json package.
Types ¶
type SnowflakeSlice ¶
type SnowflakeSlice []Snowflake
func (*SnowflakeSlice) IsNil ¶
func (s *SnowflakeSlice) IsNil() bool
func (SnowflakeSlice) JSONSize ¶
func (s SnowflakeSlice) JSONSize() uint32
func (SnowflakeSlice) MarshalJSONArray ¶
func (s SnowflakeSlice) MarshalJSONArray(enc *gojay.Encoder)
func (*SnowflakeSlice) UnmarshalJSONArray ¶
func (s *SnowflakeSlice) UnmarshalJSONArray(dec *gojay.Decoder) error
Click to show internal directories.
Click to hide internal directories.