(s string, mapper func(rune) rune)
| 16 | ) |
| 17 | |
| 18 | func 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 | |
| 26 | func isExported(field reflect.StructField) bool { |
| 27 | r, _ := utf8.DecodeRuneInString(field.Name) |
no outgoing calls
no test coverage detected
searching dependent graphs…