Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Base32Encoder = base32.NewEncoding(specialEncoderKey).WithPadding(base32.NoPadding)
Functions ¶
func FixedLengthUniqueID ¶
Creates a new UniqueID that is based on the inputID and of a specified length, if the given id is longer than the maxLength.
func FixedLengthUniqueIDForParts ¶
Creates a new uniqueID using the parts concatenated using `-` and ensures that the uniqueID is not longer than the maxLength. In case a simple concatenation yields a longer string, a new hashed ID is created which is always around 8 characters in length
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.