Documentation ¶
Overview ¶
Package hasher implements extensions for speps' go-hashids.
Index ¶
Constants ¶
View Source
const ( // DefaultAlphabet is the default alphabet used for a HashIDData. DefaultAlphabet = "abcdefghijklmnopqrstuvwxyz" DefaultMinLength = 4 DefaultSalt = "superspecialandrandomsalt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
type Hasher struct {
// contains filtered or unexported fields
}
Hasher wraps *hashids.HashID.
func (*Hasher) MustEncodeInt ¶
EncodeInt encodes an integer into a Hash ID, panicking if an error occurs.
Click to show internal directories.
Click to hide internal directories.