Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bounoable/envi
https://github.com/bounoable/envi
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/bounoable/envi
- Owner: bounoable
- License: mit
- Created: 2023-08-25T17:08:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-25T17:09:26.000Z (about 1 year ago)
- Last Synced: 2024-05-01T17:38:57.271Z (7 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envi – Environment parser
## Installation
```sh
go get github.com/modernice/envi
```## Usage
```go
package mainimport (
"log""github.com/modernice/envi"
)type Env struct {
Foo string `env:"FOO"`
Bar int `env:"BAR"`
Baz bool `env:"BAZ"`
}func main() {
var env Env
if err := envi.Parse(&env); err != nil {
panic(err)
}
}
```## License
[MIT](LICENSE)