config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFormat = "toml"

ConfigFormat is the format of the config file Available options are: json, yaml, toml

Variables

View Source
var Default map[string]*Field
View Source
var EnvKeyReplacer = strings.NewReplacer(".", "_")

Functions

func Init

func Init() error

Types

type Field

type Field struct {
	Key          string
	DefaultValue any
	Description  string
}

func (*Field) Env

func (f *Field) Env() string

func (*Field) Pretty

func (f *Field) Pretty() string

Jump to

Keyboard shortcuts

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