Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrefixedLines ¶
func PrefixedLines(prefix byte) func(data []byte, atEOF bool) (advance int, token []byte, err error)
PrefixedLines is a split function for a bufio.Scanner that returns each block of text, stripped of both the prefix marker and any leading and trailing whitespace. If no prefix is detected, the original text will be treated as a single block of text, with any leading and trailing whitespace stripped
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.