config

package
v0.4.1-beta Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const FILENAME = "adrgen.config"

FILENAME the name for the config file

View Source
const FORMAT = "yaml"

FORMAT the configuration format

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TargetDirectory  string
	TemplateFilename string
	MetaParams       []string
	Statuses         []string
	DefaultStatus    string
	IdDigitNumber    int
}

Config the Configuration type with all the supported values

type Manager

type Manager interface {
	Persist(config Config) error
	Read() (Config, error)
	GetDefault() Config
}

Manager is the interface for the service responsible for reading and persisting the configuration

Jump to

Keyboard shortcuts

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