Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxMsgSize = 1024 * 128 // 128 KiB
MaxMsgSize establishes the threshold to flush the buffer when using the `Send` function. It's a variable instead of a constant to make it easier to override in tests.
Functions ¶
func CopyAndAppend ¶
CopyAndAppend adds a newly allocated copy of `e` to the `s` slice. Useful to avoid io buffer shennanigans
func ScanWithDelimiter ¶ added in v0.18.0
ScanWithDelimiter generates a `bufio.SplitFunc` that uses `delim` as the delimiter. Based on `bufio.ScanLines` https://golang.org/src/bufio/scan.go?s=11488:11566#L329
Types ¶
Click to show internal directories.
Click to hide internal directories.