Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUID ¶ added in v0.0.19
type UUID [16]byte
UUID provides functionality to produce a new random Universal Unique Identifier as defined in RFC 4122.
uuid, ids := new(generator.UUID), make([]entity.ID, 4) for i := range sequence.Simple(len(ids)) { ids[i] = entity.ID(uid.Next()) }
type Uint32 ¶
type Uint32 uint32
Uint32 provides functionality to produce increasing sequence of numbers.
uid, ids := new(generator.Uint32).At(7), make([]entity.ID, 4) for i := range sequence.Simple(len(ids)) { ids[i] = entity.ID(uid.Next()) }
type Uint64 ¶
type Uint64 uint64
Uint64 provides functionality to produce increasing sequence of numbers.
uid, ids := new(generator.Uint64).At(7), make([]entity.ID, 4) for i := range sequence.Simple(len(ids)) { ids[i] = entity.ID(uid.Next()) }
Click to show internal directories.
Click to hide internal directories.