env

package
v0.0.0-...-e73f883 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDotEnvFile = os.Getenv("DOTENV_DEFAULT")
View Source
var DotEnvFile = os.Getenv("DOTENV")

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