Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 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