# Functions
No description provided by the author
NewNode returns a new snowflake node that can be used to generate snowflake IDs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseBase2 converts a Base2 string into a snowflake ID.
ParseBase32 parses a base32 []byte into a snowflake ID NOTE: There are many different base32 implementations so becareful when doing any interoperation.
ParseBase36 converts a Base36 string into a snowflake ID.
ParseBase58 parses a base58 []byte into a snowflake ID.
ParseBase64 converts a base64 string into a snowflake ID.
ParseBytes converts a byte slice into a snowflake ID.
ParseInt64 converts an int64 into a snowflake ID.
ParseIntBytes converts an array of bytes encoded as big endian integer as a snowflake ID.
ParseString converts a string into a snowflake ID.
# Variables
ErrInvalidBase32 is returned by ParseBase32 when given an invalid []byte.
ErrInvalidBase58 is returned by ParseBase58 when given an invalid []byte.
# Structs
No description provided by the author
A JSONSyntaxError is returned from UnmarshalJSON if an invalid ID is provided.
A Node struct holds the basic information needed for a snowflake generator node.
No description provided by the author
# Type aliases
An ID is a custom type used for a snowflake ID.