com

package
v0.0.0-...-d49a382 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SnowflakeBufferSize = 66

Variables

This section is empty.

Functions

func DecodeSnowflake

func DecodeSnowflake(dec *gojay.Decoder) (Snowflake, error)

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

func UnmarshalJSONSnowflake(buf []byte) (out Snowflake, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL