bufio.Reader.Peek (method, view implemented interface methods)
17 uses
bufio (current package)
bufio.go#L142: func (b *Reader) Peek(n int) ([]byte, error) {
mime/multipart
multipart.go#L201: peek, _ := br.Peek(br.Buffered())
multipart.go#L205: _, p.readErr = br.Peek(len(peek) + 1)
net/http
server.go#L328: if _, err := c.bufr.Peek(c.bufr.Buffered() + 1); err != nil {
server.go#L996: peek, _ := c.bufr.Peek(4) // ReadRequest will get err below
server.go#L2044: if _, err := c.bufr.Peek(4); err != nil {
transfer.go#L892: buf, err := r.Peek(peekSize)
transfer.go#L907: buf, err := b.r.Peek(2)
transport.go#L2118: _, err := pc.br.Peek(1)
transport.go#L2268: buf, _ := pc.br.Peek(n)
transport.go#L2302: if peek, err := pc.br.Peek(1); err == nil && len(peek) == 1 {
net/http/internal
chunked.go#L91: peek, _ := cr.r.Peek(n)
net/textproto
reader.go#L146: peek, _ := r.R.Peek(2)
reader.go#L509: if buf, err := r.R.Peek(1); err == nil && (buf[0] == ' ' || buf[0] == '\t') {
reader.go#L602: r.R.Peek(1) // force a buffer load if empty
reader.go#L607: peek, _ := r.R.Peek(s)
nhooyr.io/websocket
accept.go#L147: b, _ := brw.Reader.Peek(brw.Reader.Buffered())
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |