Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikenfin/getenvor
Simple environment values getter with default value support.
https://github.com/ikenfin/getenvor
Last synced: about 2 months ago
JSON representation
Simple environment values getter with default value support.
- Host: GitHub
- URL: https://github.com/ikenfin/getenvor
- Owner: ikenfin
- Created: 2019-04-13T16:34:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T18:36:22.000Z (about 2 years ago)
- Last Synced: 2024-06-21T18:08:49.949Z (7 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# getenvor
Simple `Getenv` function with default value support.
Usage:
```golang
import (
"http"
. "github.com/ikenfin/getenvor"
)func main() {
host := GetenvOr("HOST", "127.0.0.1") + ":" + GetenvOr("PORT", "3000")err := http.ListenAndServe(host, nil)
// ...
}
```