var GoNamePrefixFunc … func prefixFunc(name, in string) string { … } const collectionFormatSpace … const collectionFormatTab … const collectionFormatPipe … const collectionFormatMulti … // JoinByFormat joins a string array by a known format (e.g. swagger's collectionFormat attribute): // // ssv: space separated value // tsv: tab separated value // pipes: pipe (|) separated value // csv: comma separated value (default) func JoinByFormat(data []string, format string) []string { … } // SplitByFormat splits a string by a known format: // // ssv: space separated value // tsv: tab separated value // pipes: pipe (|) separated value // csv: comma separated value (default) func SplitByFormat(data, format string) []string { … } // Removes leading whitespaces func trim(str string) string { … } // Shortcut to strings.ToUpper() func upper(str string) string { … } // Shortcut to strings.ToLower() func lower(str string) string { … } // Camelize an uppercased word func Camelize(word string) string { … } // ToFileName lowercases and underscores a go type name func ToFileName(name string) string { … } // ToCommandName lowercases and underscores a go type name func ToCommandName(name string) string { … } // ToHumanNameLower represents a code name as a human series of words func ToHumanNameLower(name string) string { … } // ToHumanNameTitle represents a code name as a human series of words with the first letters titleized func ToHumanNameTitle(name string) string { … } // ToJSONName camelcases a name which can be underscored or pascal cased func ToJSONName(name string) string { … } // ToVarName camelcases a name which can be underscored or pascal cased func ToVarName(name string) string { … } // ToGoName translates a swagger name which can be underscored or camel cased to a name that golint likes func ToGoName(name string) string { … } // ContainsStrings searches a slice of strings for a case-sensitive match func ContainsStrings(coll []string, item string) bool { … } // ContainsStringsCI searches a slice of strings for a case-insensitive match func ContainsStringsCI(coll []string, item string) bool { … } type zeroable … // IsZero returns true when the value passed into the function is a zero value. // This allows for safer checking of interface values. func IsZero(data interface{ … } type CommandLineOptionsGroup …