{"modulePath":"github.com/coding/drone","version":"v0.4.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package envconfig\n\n## Types\n\n```go\ntype Env map[string]string\n```\n\n```go\nfunc Load(filepath string) Env\n```\nLoad reads the environment file and reads variables in \"key=value\" format. Then it read the system environment variables. It returns the combined results in a key value map.\n\n```go\nfunc (env Env) Bool(name string, value bool) bool\n```\nBool returns the boolean value of the environment variable named by the key. If the variable is not present, the default value is returned.\n\n```go\nfunc (env Env) Get(key string) string\n```\nGet returns the value of the environment variable named by the key.\n\n```go\nfunc (env Env) Int(name string, value int) int\n```\nInt returns the integer value of the environment variable named by the key. If the variable is not present, the default value is returned.\n\n```go\nfunc (env Env) String(key, value string) string\n```\nString returns the string value of the environment variable named by the key. If the variable is not present, the default value is returned.\n\n","path":"github.com/coding/drone/shared/envconfig","name":"envconfig","synopsis":"","isRedistributable":true}
