config

package
v0.0.0-...-7641ad8 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvExposed []string
View Source
var EnvKeyReplacer = strings.NewReplacer(".", "_")

Functions

func Setup

func Setup() error

Setup initializes the configuration

Types

type Field

type Field struct {
	// Key is the key of the field
	Key string
	// Value is the default value of the field
	Value any
	// Description is the description of the field
	Description string
}

Field represents a single config field

func (*Field) Env

func (f *Field) Env() string

func (*Field) MarshalJSON

func (f *Field) MarshalJSON() ([]byte, error)

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