# Functions
NewNode returns a new snowflake node that can be used to generate snowflake IDs.
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
Epoch is set to the twitter snowflake epoch of Nov 04 2010 01:42:54 UTC in milliseconds You may customize this to set a different epoch for your application.
ErrInvalidBase32 is returned by ParseBase32 when given an invalid []byte.
ErrInvalidBase58 is returned by ParseBase58 when given an invalid []byte.
NodeBits holds the number of bits to use for Node Remember, you have a total 22 bits to share between Node/Step.
StepBits holds the number of bits to use for Step Remember, you have a total 22 bits to share between Node/Step.
# Structs
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.
# Type aliases
An ID is a custom type used for a snowflake ID.