env

package
v0.0.0-...-3fa3b1e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of app
	Version string
	// Build date for version
	Build string
)

Functions

func AddConfigPath

func AddConfigPath(path string)

AddConfigPath ...

func BindPFlag

func BindPFlag(key string, flag *pflag.Flag) error

BindPFlag ...

func Get

func Get(key string) interface{}

Get ...

func GetBasePath

func GetBasePath() string

GetBasePath ...

func GetBool

func GetBool(key string) bool

GetBool ...

func GetBuild

func GetBuild() string

GetBuild returns app build date

func GetInt

func GetInt(key string) int

GetInt ...

func GetString

func GetString(key string) string

GetString ...

func GetStringMap

func GetStringMap(key string) map[string]interface{}

GetStringMap ...

func GetStringMapString

func GetStringMapString(key string) map[string]string

GetStringMapString ...

func GetStringSlice

func GetStringSlice(key string) []string

GetStringSlice ...

func GetVersion

func GetVersion() string

GetVersion returns app version

func Init

func Init(filename string)

Init ...

func IsSet

func IsSet(key string) bool

IsSet ...

func SetConfigFile

func SetConfigFile(file string)

SetConfigFile ...

func SetConfigName

func SetConfigName(name string)

SetConfigName ...

func SetConfigType

func SetConfigType(typeName string)

SetConfigType ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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