Documentation
¶
Index ¶
- func AppendString(inputs ...string) string
- func CamelCase(s string) string
- func CamelCaseFullName(name protoreflect.FullName) string
- func CamelCaseName(name protoreflect.Name) string
- func Counter(initial int) func() int
- func FirstLowerCase(s string) string
- func FirstLowerCaseName(name protoreflect.Name) string
- func LowercaseCamelCase(s string) string
- func LowercaseCamelCaseName(name protoreflect.Name) string
- func MakeIterable(length int) []struct{}
- func SnakeCase(s string) string
- func SnakeCaseName(name protoreflect.Name) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendString ¶
func CamelCase ¶
CamelCase returns the CamelCased name. If there is an interior underscore followed by a lower case letter, drop the underscore and convert the letter to upper case. There is a remote possibility of this rewrite causing a name collision, but it's so remote we're prepared to pretend it's nonexistent - since the C++ generator lowercases names, it's extremely unlikely to have two fields with different capitalizations. In short, _my_field_name_2 becomes XMyFieldName_2.
func CamelCaseFullName ¶
func CamelCaseFullName(name protoreflect.FullName) string
func CamelCaseName ¶
func CamelCaseName(name protoreflect.Name) string
func FirstLowerCase ¶
func FirstLowerCaseName ¶
func FirstLowerCaseName(name protoreflect.Name) string
func LowercaseCamelCase ¶
func LowercaseCamelCaseName ¶
func LowercaseCamelCaseName(name protoreflect.Name) string
func MakeIterable ¶
func MakeIterable(length int) []struct{}
func SnakeCaseName ¶
func SnakeCaseName(name protoreflect.Name) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.