Documentation ¶ Overview ¶ Package strutil provides some miscellaneous string functions. Index ¶ func IsASCIISpace(c byte) bool func TrimSpace(s string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsASCIISpace ¶ func IsASCIISpace(c byte) bool IsASCIISpace returns true if c represents an ASCII whitespace byte. func TrimSpace ¶ func TrimSpace(s string) string TrimSpace returns a slice of the string s, with all leading and trailing white space removed, as defined by Unicode. (It behaves the same as Go's strings.TrimSpace, but has a fast path for ASCII strings so is much faster for common cases.) Types ¶ This section is empty. Source Files ¶ View all Source files strutil.go Click to show internal directories. Click to hide internal directories.