MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / BytesValue

Function BytesValue

runtime/convert.go:315–318  ·  view source on GitHub ↗

BytesValue well-known type support as wrapper around bytes[] type

(val string)

Source from the content-addressed store, hash-verified

313
314// BytesValue well-known type support as wrapper around bytes[] type
315func BytesValue(val string) (*wrapperspb.BytesValue, error) {
316 parsedVal, err := Bytes(val)
317 return wrapperspb.Bytes(parsedVal), err
318}

Callers 2

Calls 1

BytesFunction · 0.85

Tested by

no test coverage detected