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

Method WriteString

syncio/buffer.go:88–92  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

86}
87
88func (rw *Buffer) WriteString(s string) (n int, err error) {
89 rw.l.Lock()
90 defer rw.l.Unlock()
91 return rw.b.WriteString(s)
92}
93
94func (rw *Buffer) Next(n int) []byte {
95 rw.l.Lock()

Callers 3

FormatMethod · 0.80
fillStringFunction · 0.80
TestUnreadByteFunction · 0.80

Calls

no outgoing calls

Tested by 2

fillStringFunction · 0.64
TestUnreadByteFunction · 0.64