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

Function unquoteString

jsonpb/decode.go:512–515  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

510}
511
512func unquoteString(in string) (out string, err error) {
513 err = json.Unmarshal([]byte(in), &out)
514 return out, err
515}
516
517func hasPrefixAndSuffix(prefix byte, in []byte, suffix byte) bool {
518 if len(in) >= 2 && in[0] == prefix && in[len(in)-1] == suffix {

Callers 1

unmarshalMessageMethod · 0.85

Calls 1

UnmarshalMethod · 0.65

Tested by

no test coverage detected