func OptionString(name, def string) string {
	if res := os.Getenv(name); res != "" {
		return string(res)
	}
	return def
}
OptionString - Will return ENV value back based on provided name casted as string
package main
import (
	"os"
	"strconv"
)