env

package
v0.0.0-...-e120e2b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEnv = struct {
	Mode string `env:"prod"`
}{}

Functions

func GetBool

func GetBool(key string, defaultValue ...bool) bool

func GetInt

func GetInt(key string, defaultValue ...int) int

func GetInt64

func GetInt64(key string, defaultValue ...int64) int64

func GetInt64List

func GetInt64List(key string, splitter string, defaultValue ...[]int64) []int64

func GetIntList

func GetIntList(key string, splitter string, defaultValue ...[]int) []int

func GetString

func GetString(key string, defaultValue ...string) string

func GetStringList

func GetStringList(key string, splitter string, defaultValue ...[]string) []string

func GinRelease

func GinRelease() bool

func Init

func Init(ks interface{}, upper bool, prefix ...string)

func IsDebug

func IsDebug() bool

func IsLocal

func IsLocal() bool

func IsProd

func IsProd() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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