Standard library / bufio
bufio.ErrBufferFull
Signals that requested lookahead or delimiter search exceeds available reader buffer space. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
var ErrBufferFull errorWorking Example
Example Snippetgo
package main
import ( "bufio" "fmt" "strings")
func main() { r := bufio.NewReaderSize(strings.NewReader(strings.Repeat("a", 50)), 16) _, e := r.Peek(32) fmt.Println(e == bufio.ErrBufferFull)}