Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneBytes ¶
CloneBytes creates a copy of the given byte slice.
func EscapeNewlines ¶
EscapeNewlines escapes the '\n' and '\r' characters with a backslash.
func IsNewlineChar ¶
IsNewlineChar returns whether the given character is '\n' or '\r'.
func RemovePrefix ¶
RemovePrefix returns a reader that removes the given prefix from the input. If you want to remove a long prefix make sure you read using a buffer sized equally to or greater than the prefix, otherwise an allocation will be made. The function returns the given reader if the prefix is an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.