Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
type IDGenerator interface {
Generate() string
}
IDGenerator generates a unique ID.
func NewFixedLengthIDGenerator ¶
func NewFixedLengthIDGenerator(length int) IDGenerator
NewFixedLengthIDGenerator creates a new FixedLengthIDGenerator.
func NewPrefixIDGenerator ¶
func NewPrefixIDGenerator(prefix string) IDGenerator
NewPrefixIDGenerator creates a new PrefixIDGenerator.
Click to show internal directories.
Click to hide internal directories.