Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("id: generator not found")
ErrNotFound for id.
View Source
var Module = fx.Options( fx.Provide(NewGenerator), )
Module for fx.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"`
}
Config for id.
type Generator ¶
type Generator interface {
// Generate an identifier.
Generate() string
}
Generator to generate an identifier.
Click to show internal directories.
Click to hide internal directories.