Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HashID ¶
HashID implements the hide.Hash interface and uses github.com/speps/go-hashids to encode and decode hashes.
type ID ¶
type ID uint64
ID type that can be used as an replacement for uint64. It is converted to/from a hash value when marshalled to/from JSON. Value 0 is considered null.
func FromString ¶
FromString returns a new ID from given hash by using the hasher or an error if it couldn't decode the hash.
func (ID) MarshalJSON ¶
MarshalJSON implements the encoding json interface.
func (*ID) UnmarshalJSON ¶
UnmarshalJSON implements the encoding json interface.
Click to show internal directories.
Click to hide internal directories.