Title returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case.
(s string)
| 22 | |
| 23 | // Title returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case. |
| 24 | func Title(s string) string { |
| 25 | c := cases.Title(language.English) |
| 26 | return c.String(s) |
| 27 | } |
| 28 | |
| 29 | // RemoveExcessiveWhitespace returns a copy of the string s with excessive whitespace removed. |
| 30 | func RemoveExcessiveWhitespace(s string) string { |
no test coverage detected