MCPcopy Create free account
hub / github.com/Shopify/goose / ReadString

Method ReadString

syncio/buffer.go:82–86  ·  view source on GitHub ↗
(delim byte)

Source from the content-addressed store, hash-verified

80}
81
82func (rw *Buffer) ReadString(delim byte) (line string, err error) {
83 rw.l.Lock()
84 defer rw.l.Unlock()
85 return rw.b.ReadString(delim)
86}
87
88func (rw *Buffer) WriteString(s string) (n int, err error) {
89 rw.l.Lock()

Callers 2

BenchmarkReadStringFunction · 0.95
TestReadStringFunction · 0.80

Calls

no outgoing calls

Tested by 2

BenchmarkReadStringFunction · 0.76
TestReadStringFunction · 0.64