Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rosylilly/envdef
envdef provides methods of getting environment value with default value
https://github.com/rosylilly/envdef
Last synced: 5 days ago
JSON representation
envdef provides methods of getting environment value with default value
- Host: GitHub
- URL: https://github.com/rosylilly/envdef
- Owner: rosylilly
- License: mit
- Created: 2014-10-25T13:31:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-25T13:36:35.000Z (about 10 years ago)
- Last Synced: 2024-12-22T13:14:51.660Z (15 days ago)
- Language: Go
- Homepage:
- Size: 113 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
- License: LICENSE
Awesome Lists containing this project
README
# envdef
[![wercker status](https://app.wercker.com/status/daabaa5da9021a6d62ae6bbfa79535d6/s "wercker status")](https://app.wercker.com/project/bykey/daabaa5da9021a6d62ae6bbfa79535d6)
envdef provides methods of getting environment value with default value.
## Installation
```shell
$ go get github.com/rosylilly/envdef
```## Usage
```golang
package mainimport (
"github.com/rosylilly/envdef"
"fmt"
)func main() {
AwsAccessKeyId := envdef.Get("AWS_ACCESS_KEY_ID", "default aws accesss key id")
fmt.Println(AwsAccessKeyId)
}
```## License
Copyright (c) 2014 @rosylilly Licensed under the MIT License