Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifier ¶
type Identifier struct {
// contains filtered or unexported fields
}
https://zenn.dev/emiksk/articles/e2716c0af75eea
func GenerateIdentifier ¶
func GenerateIdentifier() Identifier
func NewIdentifier ¶
func NewIdentifier(id string) Identifier
func (Identifier) Equal ¶
func (i Identifier) Equal(other Identifier) bool
func (Identifier) Value ¶
func (i Identifier) Value() string
type IdentifierGenerator ¶
type IdentifierGenerator interface {
Generate() Identifier
}
type ULIDGenerator ¶
type ULIDGenerator struct {
// contains filtered or unexported fields
}
func (*ULIDGenerator) Generate ¶
func (g *ULIDGenerator) Generate() Identifier
Click to show internal directories.
Click to hide internal directories.