This is my first published Go package.
It's called gabtec-gou, because "gou" stands for "Go Utils" 😄
# create a new project
# after you have your go.mod file setup
# run:
$ go get -u github.com/gabtec/gabtec-gou
Then use it, like this:
// e.g. in your main.go file
package main
import "github.com/gabtec/gabtec-gou"
func main() {
myVar := gou.GetEnv("TheEnvVarName_aka_key", "Some_default_value_in_case_envVar_not_set_or_not_found")
//...
}
# to run tests, do:
$ go test -v ./...