Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("generator not found")
ErrNotFound for generator.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Name string `yaml:"name"` Kind string `yaml:"kind"` Prefix string `yaml:"prefix"` Suffix string `yaml:"suffix"` Separator string `yaml:"separator"` }
Application fto generate identifiers.
type Config ¶
type Config struct {
Applications []Application `yaml:"applications"`
}
Config for generator.
func (*Config) Application ¶
func (c *Config) Application(name string) *Application
Application by name.
type Generator ¶
type Generator interface { // Generate an identifier. Generate(ctx context.Context) (string, error) }
Generator to generate an identifier.
Click to show internal directories.
Click to hide internal directories.