MCPcopy Create free account
hub / github.com/golang/groupcache / SetString

Method SetString

sinks.go:182–191  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

180}
181
182func (s *protoSink) SetString(v string) error {
183 b := []byte(v)
184 err := proto.Unmarshal(b, s.dst)
185 if err != nil {
186 return err
187 }
188 s.v.b = b
189 s.v.s = ""
190 return nil
191}
192
193func (s *protoSink) SetProto(m proto.Message) error {
194 b, err := proto.Marshal(m)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected