env

package
v1.10.20 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoolConfig

func NewBoolConfig(key string, defaultValue bool) config.Bool

NewBoolConfig creates a env-based bool config

func NewBytesConfig

func NewBytesConfig(key string, defaultValue []byte) config.Bytes

NewBytesConfig creates a env-based byte array config

func NewConfig

func NewConfig(key string) config.Config

func NewDurationConfig

func NewDurationConfig(key string, defaultValue time.Duration) config.Duration

NewDurationConfig creates a env-based duration config

func NewFloat64Config

func NewFloat64Config(key string, defaultValue float64) config.Float64

NewFloat64Config creates a env-based float64 config

func NewInt64Config

func NewInt64Config(key string, defaultValue int64) config.Int64

NewInt64Config creates a env-based int64 config

func NewStringConfig

func NewStringConfig(key string, defaultValue string) config.String

NewStringConfig creates a env-based string config

func NewUint64Config

func NewUint64Config(key string, defaultValue uint64) config.Uint64

NewUint64Config creates a env-based uint64 config

Types

This section is empty.

Jump to

Keyboard shortcuts

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