func toEnvironmentVariable()

in config/shared.go [65:80]


func toEnvironmentVariable(name string) string {
	output := ""
	runes := []rune(name)

	var c, p rune
	for i := 0; i < len(runes); i++ {
		c = runes[i]
		if unicode.IsUpper(c) && unicode.IsLower(p) {
			output += "_"
		}
		output += string(unicode.ToUpper(c))
		p = c
	}

	return output
}