// SnakeCase converts a string into snake case. func SnakeCase(s string) string { … } // UpperSnakeCase converts a string into snake case with capital letters. func UpperSnakeCase(s string) string { … } // delimiterCase converts a string into snake_case or kebab-case depending on the delimiter passed // as second argument. When upperCase is true the result will be UPPER_SNAKE_CASE or UPPER-KEBAB-CASE. func delimiterCase(s string, delimiter rune, upperCase bool) string { … }