MCPcopy
hub / github.com/darccio/mergo / changeInitialCase

Function changeInitialCase

map.go:18–24  ·  view source on GitHub ↗
(s string, mapper func(rune) rune)

Source from the content-addressed store, hash-verified

16)
17
18func changeInitialCase(s string, mapper func(rune) rune) string {
19 if s == "" {
20 return s
21 }
22 r, n := utf8.DecodeRuneInString(s)
23 return string(mapper(r)) + s[n:]
24}
25
26func isExported(field reflect.StructField) bool {
27 r, _ := utf8.DecodeRuneInString(field.Name)

Callers 1

deepMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…