Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ ReadByte
Method
ReadByte
syncio/buffer.go:58–62 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
56
}
57
58
func
(rw *Buffer) ReadByte() (byte, error) {
59
rw.l.Lock()
60
defer
rw.l.Unlock()
61
return
rw.b.ReadByte()
62
}
63
64
func
(rw *Buffer) ReadBytes(delim byte) (line []byte, err error) {
65
rw.l.Lock()
Callers
2
TestBasicOperations
Function · 0.95
TestUnreadByte
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestBasicOperations
Function · 0.76
TestUnreadByte
Function · 0.64