Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/golang/groupcache
/ SetBytes
Method
SetBytes
sinks.go:91–93 ·
view source on GitHub ↗
(v []byte)
Source
from the content-addressed store, hash-verified
89
}
90
91
func
(s *stringSink) SetBytes(v []byte) error {
92
return
s.SetString(string(v))
93
}
94
95
func
(s *stringSink) SetProto(m proto.Message) error {
96
b, err := proto.Marshal(m)
Callers
nothing calls this directly
Calls
1
SetString
Method · 0.95
Tested by
no test coverage detected