Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface { // NewUUID generates an UUID. NewUUID() string }
Generator is an interface of an UUID generator.
type GeneratorFunc ¶
type GeneratorFunc func() string
GeneratorFunc is an adapter that simplifies creating Generator.
func (GeneratorFunc) NewUUID ¶
func (f GeneratorFunc) NewUUID() string
NewUUID returns new UUID. It calls the inner method of GeneratorFunc.
Click to show internal directories.
Click to hide internal directories.