env

package
v0.0.0-...-15f65a9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	ErrorHandler func(error)
}

func (*Env) Bool

func (e *Env) Bool(name string, fallback ...bool) bool

func (*Env) Duration

func (e *Env) Duration(name string, fallback ...time.Duration) time.Duration

func (*Env) Int

func (e *Env) Int(name string, fallback ...int) int

func (*Env) String

func (e *Env) String(name string, fallback ...string) string

func (*Env) Strings

func (e *Env) Strings(name string, fallback ...[]string) []string

Strings parses a comma-separated list of strings.

func (*Env) StringsAppend

func (e *Env) StringsAppend(name string, defaultValues ...[]string) []string

Strings parses a comma-separated list of strings and appends it to the default values

Jump to

Keyboard shortcuts

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