env

package module
v0.0.0-...-1f29cf0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDotEnvFile = ".env_default"
View Source
var DotEnvFile = ".env"

Functions

func FileExists

func FileExists(name string) bool

func Get

func Get(key string, fallback ...string) string

func GetBool

func GetBool(key string, fallback ...bool) (bool, error)

func GetBoolMust

func GetBoolMust(key string, fallback bool) bool

func GetFloat

func GetFloat(key string, fallback ...float64) (float64, error)

func GetFloatMust

func GetFloatMust(key string, fallback ...float64) float64

func GetInt

func GetInt(key string, fallback ...int) (int, error)

func GetIntMust

func GetIntMust(key string, fallback ...int) int

func GetMust

func GetMust(key string) string

func GetPath

func GetPath(p string) string

GetPath return absolute path if p is relative path

func Getwd

func Getwd() string

func Setenv

func Setenv(key, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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