Read from the environment like you read from the command line with flag
.
Env is designed to be a drop in replacement for flag
package.
- String
- StringVar
- Int
- IntVar
- Bool
- BoolVar
- Usage
- Bool variable doesn't need arg
Env is based upon:
Project: Golang Flag https://golang.org/src/flag/flag.go
Copyright 2009 The Go Authors. All rights reserved.
License (BSD) https://github.com/golang/go/blob/master/LICENSE