Documentation ¶
Overview ¶
whitespace centralises information and some utility functions regarding whitespace.
Index ¶
Constants ¶
View Source
const ( // Chars is a string containing all the literal whitespace characters. Chars = " \t\r\n" // EscapedChars is a string containing the whitespace characters escaped // with a backslash. EscapedChars = ` \t\r\n` )
Variables ¶
This section is empty.
Functions ¶
func CleanWS ¶
CleanWS takes a long string and left aligns it In other words, if you have a string in the midst of code, and all of its lines have at least the same level of indent as the first line, CleanWS will strip that indent from each line. There's an exception made for otherwise blank lines so that you don't need to maintain lines with only whitespace in the code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.