MCPcopy
hub / github.com/golang/groupcache / String

Method String

byteview.go:55–60  ·  view source on GitHub ↗

String returns the data as a string, making a copy if necessary.

()

Source from the content-addressed store, hash-verified

53
54// String returns the data as a string, making a copy if necessary.
55func (v ByteView) String() string {
56 if v.b != nil {
57 return string(v.b)
58 }
59 return v.s
60}
61
62// At returns the byte at index i.
63func (v ByteView) At(i int) byte {

Callers 6

testSetupFunction · 0.45
TestGetDupSuppressProtoFunction · 0.45
TestByteViewFunction · 0.45
TestByteViewSliceFunction · 0.45
http_test.goFile · 0.45
pickFreeAddrFunction · 0.45

Calls

no outgoing calls

Tested by 5

testSetupFunction · 0.36
TestGetDupSuppressProtoFunction · 0.36
TestByteViewFunction · 0.36
TestByteViewSliceFunction · 0.36
pickFreeAddrFunction · 0.36