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 error

Working 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)}
Go Reference