Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ Reset
Method
Reset
syncio/buffer.go:100–104 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
98
}
99
100
func
(rw *Buffer) Reset() {
101
rw.l.Lock()
102
rw.b.Reset()
103
rw.l.Unlock()
104
}
105
106
func
(rw *Buffer) Truncate(n int) {
107
rw.l.Lock()
Callers
5
TestBasicOperations
Function · 0.95
TestRuneIO
Function · 0.95
BenchmarkWriteByte
Function · 0.95
BenchmarkWriteRune
Function · 0.95
RunAndWait
Method · 0.80
Calls
no outgoing calls
Tested by
4
TestBasicOperations
Function · 0.76
TestRuneIO
Function · 0.76
BenchmarkWriteByte
Function · 0.76
BenchmarkWriteRune
Function · 0.76