|
|
|
|
|
|
|
|
## Installation |
|
|
## Installation |
|
|
|
|
|
|
|
|
```shell |
|
|
```shell |
|
|
$ go get -v github.com/goanywhere/env |
|
|
|
|
|
|
|
|
$ go get -v git.thevis.us/skepto/env |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Usage |
|
|
## Usage |
|
|
|
|
|
|
|
|
package main |
|
|
package main |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"github.com/goanywhere/env" |
|
|
|
|
|
"github.com/goanywhere/rex" |
|
|
|
|
|
|
|
|
"git.thevis.us/skepto/env" |
|
|
|
|
|
"git.thevis.us/skepto/rex" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func index (ctx *rex.Context) { |
|
|
func index (ctx *rex.Context) { |
|
|
|
|
|
|
|
|
``` go |
|
|
``` go |
|
|
import ( |
|
|
import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/goanywhere/env" |
|
|
|
|
|
|
|
|
"git.thevis.us/skepto/env" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func main() { |
|
|
func main() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/goanywhere/env" |
|
|
|
|
|
|
|
|
"git.thevis.us/skepto/env" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
type Spec struct { |
|
|
type Spec struct { |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
|
|
|
|
|
|
"github.com/goanywhere/env" |
|
|
|
|
|
|
|
|
"git.thevis.us/skepto/env" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func main() { |
|
|
func main() { |