Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenliebig/env
https://github.com/svenliebig/env
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/svenliebig/env
- Owner: svenliebig
- Created: 2024-04-22T16:17:05.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-04T07:47:48.000Z (7 months ago)
- Last Synced: 2024-06-19T11:33:16.959Z (5 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# env
this is a minimal package for go that allows you to read environment variables from a `.env` file, that is located in the root of your working directory.
## Usage
```go
package mainimport (
"fmt"
"github.com/svenliebig/env"
)func main() {
env.Load()
fmt.Println(env.Get("MY_ENV_VAR"))
}
```