Documentation ¶
Index ¶
- Variables
- func CreateADRTemplate(body Body) (out string)
- func HeaderInfo(title string) (id int, name string)
- func Init(conf Config) (err error)
- func IsInitedConfig() bool
- func IsValidLanguage(lang string) bool
- func List(ctx context.Context, conf Config, w io.Writer) (err error)
- func LoadLanguage(lang string)
- func MarshalConfig(conf Config) []byte
- func New(ctx context.Context, conf Config, new ADRecord) (err error)
- func T(id string) string
- type ADRecord
- type Body
- type Config
- type Head
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyExists = errors.New("already exists") ErrWriteFileFailed = errors.New("write file failed") )
Functions ¶
func CreateADRTemplate ¶
func HeaderInfo ¶
headerInfo formats the header information.
func IsInitedConfig ¶
func IsInitedConfig() bool
func IsValidLanguage ¶
func LoadLanguage ¶
func LoadLanguage(lang string)
func MarshalConfig ¶
Types ¶
type Body ¶
type Config ¶
func ReadConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.