platform

package
v0.0.0-...-42c4776 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL