Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bounoable/envi


https://github.com/bounoable/envi

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# envi – Environment parser

## Installation

```sh
go get github.com/modernice/envi
```

## Usage

```go
package main

import (
"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)