func GetInt32Or(envName string, otherwise int32) int32 {
	strVal, err := Get(envName)
	if err != nil {
		return otherwise
	}
	val, err := strconv.ParseInt(strVal, 10, 32)
	if err != nil {
		return otherwise
	}
	return int32(val)
}
GetInt32Or returns the int32 value of the environment variable called envName.
If the environment variable is missing or it's not a valid int32, returns otherwise
package env
import (
	"fmt"
	"os"
	"strconv"
)
func GetOr(envName, otherwise string) string {
	fromEnv, err := Get(envName)
	if err != nil {
		return otherwise
	}
	return fromEnv
}
func Get(envName string) (string, error) {
	fromEnv := os.Getenv(envName)
	if fromEnv == "" {
		return "", fmt.Errorf("Environnment variable %s not found", envName)
	}
	return fromEnv, nil
}