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
Types ¶
Click to show internal directories.
Click to hide internal directories.