package
module
Version:
v0.0.0-...-01aa38f
Opens a new window with list of versions in this module.
Published: Oct 25, 2014
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
¶
# envdef
[](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 main
import (
"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
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.