utils/utils.go
func Getopts(userInput, envVar, dfault string) string {

	if len(strings.TrimSpace(userInput)) > 0 {
		return userInput
	}
	value := os.Getenv(envVar)
	if value == "" {
		value = dfault
	}
	return value
}
func Getopts(userInput, envVar, dfault string) string {

	if len(strings.TrimSpace(userInput)) > 0 {
		return userInput
	}
	value := os.Getenv(envVar)
	if value == "" {
		value = dfault
	}
	return value
}
// Getopts reads from user input then environment variable and finally a sane default.