MCPcopy
hub / github.com/golang/protobuf / unmarshalValue

Function unmarshalValue

jsonpb/decode.go:507–510  ·  view source on GitHub ↗
(in []byte, v interface{})

Source from the content-addressed store, hash-verified

505}
506
507func unmarshalValue(in []byte, v interface{}) (protoreflect.Value, error) {
508 err := json.Unmarshal(in, v)
509 return protoreflect.ValueOf(reflect.ValueOf(v).Elem().Interface()), err
510}
511
512func unquoteString(in string) (out string, err error) {
513 err = json.Unmarshal([]byte(in), &out)

Callers 1

Calls 2

InterfaceMethod · 0.80
UnmarshalMethod · 0.65

Tested by

no test coverage detected