(msg string)
| 7 | const WhiteSpaceChars = " \t\n\r\f\v" |
| 8 | |
| 9 | func TrimWhitespace(msg string) string { |
| 10 | return strings.Trim(msg, WhiteSpaceChars) |
| 11 | } |
| 12 | |
| 13 | // IndexSubslice returns the index of the first instance of sub in s, |
| 14 | // or -1 if sub is not present in s. |