https://github.com/drish/go-envvar
https://github.com/drish/go-envvar
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/drish/go-envvar
- Owner: drish
- License: mit
- Created: 2019-10-11T03:55:13.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T01:11:56.000Z (over 3 years ago)
- Last Synced: 2025-03-05T11:50:28.252Z (over 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# go-envvar
Opnionated utility package for handling environment variables, based on [brendanstennett/envvar](https://github.com/brendanstennett/envvar/)
---

[](https://godoc.org/github.com/drish/go-envvar)

# Example config.yml
```yml
```
# Usage
```go
func init() {
envvar.Load("../config.yaml", os.Getenv("APP_ENV"))
// if no environment argument is passed, it defaults to `local`
}
```