Documentation ¶
Index ¶
- func GetBoolEnv(name string, def bool) bool
- func GetFloat64Env(name string, def float64) float64
- func GetHomeDir() string
- func GetIntEnv(name string, def int) int
- func GetStringEnv(name, def string) string
- func IsFileExists(fileName string) bool
- func OpenFile(fileName string, flag int, perm os.FileMode) (*os.File, error)
- func ReplaceFile(destPath string, content io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolEnv ¶
GetBoolEnv get evironment value of 'name', and return provided default value if not found.
func GetFloat64Env ¶
GetFloat64Env get evironment value of 'name', and return provided default value if not found.
func GetIntEnv ¶
GetIntEnv get evironment value of 'name', and return provided default value if not found.
func GetStringEnv ¶
GetStringEnv get evironment value of 'name', and return provided default value if not found.
func IsFileExists ¶
IsFileExists returns true if the file exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.