env

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Required = true
	Optional = false
)

Variables

View Source
var (
	Prefix    = ""
	Suffix    = ""
	Separator = ","
)

Functions

func Bool

func Bool(key string, fallback bool, required bool) bool

func Bools

func Bools(key string, fallback []bool, required bool) []bool

func Duration

func Duration(key string, fallback string, required bool) time.Duration

func Float

func Float(key string, fallback float64, required bool) float64

func Floats

func Floats(key string, fallback []float64, required bool) []float64

func Get

func Get(key string) string

func Int

func Int(key string, fallback int, required bool) int

func Ints

func Ints(key string, fallback []int, required bool) []int

func Set

func Set(key string, value string)

func String

func String(key string, fallback string, required bool) string

func Strings

func Strings(key string, fallback []string, required bool) []string

func Time

func Time(key string, fallback string, required bool) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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