MCPcopy Index your code
hub / github.com/Shopify/goose / String

Method String

syncio/buffer.go:118–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118func (rw *Buffer) String() string {
119 if rw == nil {
120 // Special case, useful in debugging.
121 return "<nil>"
122 }
123
124 rw.l.RLock()
125 defer rw.l.RUnlock()
126 return rw.b.String()
127}
128
129func (rw *Buffer) Bytes() []byte {
130 rw.l.RLock()

Callers 15

TestNilFunction · 0.95
TestNewServerFunction · 0.95
TestNewServerFromFactoryFunction · 0.95
TestLogIfErrorFunction · 0.45
newUUIDFunction · 0.45
LookupCNAMEMethod · 0.45
LookupSRVMethod · 0.45
checkFunction · 0.45
TestThrottlerMiddlewareFunction · 0.45

Calls

no outgoing calls

Tested by 14

TestNilFunction · 0.76
TestNewServerFunction · 0.76
TestNewServerFromFactoryFunction · 0.76
TestLogIfErrorFunction · 0.36
checkFunction · 0.36
TestThrottlerMiddlewareFunction · 0.36
ExampleNewServerFunction · 0.36
TestNewHTTPRecorderFunction · 0.36
TestRealIPMiddlewareFunction · 0.36