config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

README

config

go config helper from environment variable

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Values = configVars(map[string]string{})
)

Functions

func FromEnv

func FromEnv()

func FromEnvWithPrefix

func FromEnvWithPrefix(pref string, must ...string) error

func Get

func Get(name string, def ...string) string

func GetDuration

func GetDuration(name string, def ...string) time.Duration

func GetInt

func GetInt(name string, def ...int) int

func NewValues

func NewValues() configVars

func Set

func Set(name string, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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