MCPcopy
hub / github.com/golang/protobuf / CamelCaseSlice

Function CamelCaseSlice

protoc-gen-go/generator/generator.go:2691–2691  ·  view source on GitHub ↗

CamelCaseSlice is like CamelCase, but the argument is a slice of strings to be joined with "_".

(elem []string)

Source from the content-addressed store, hash-verified

2689// CamelCaseSlice is like CamelCase, but the argument is a slice of strings to
2690// be joined with "_".
2691func CamelCaseSlice(elem []string) string { return CamelCase(strings.Join(elem, "_")) }
2692
2693// dottedSlice turns a sliced name into a dotted name.
2694func dottedSlice(elem []string) string { return strings.Join(elem, ".") }

Callers 6

prefixMethod · 0.85
generateEnumMethod · 0.85
goTagMethod · 0.85
TypeNameMethod · 0.85
generateMessageMethod · 0.85

Calls 1

CamelCaseFunction · 0.85

Tested by

no test coverage detected