envdef

package module
v0.0.0-...-01aa38f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2014 License: MIT Imports: 1 Imported by: 4

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key, def string) string

func GetWithExpand

func GetWithExpand(key, def string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL