MCPcopy
hub / github.com/connectrpc/connect-go / MarshalText

Method MarshalText

code.go:149–151  ·  view source on GitHub ↗

MarshalText implements [encoding.TextMarshaler].

()

Source from the content-addressed store, hash-verified

147
148// MarshalText implements [encoding.TextMarshaler].
149func (c Code) MarshalText() ([]byte, error) {
150 return []byte(c.String()), nil
151}
152
153// UnmarshalText implements [encoding.TextUnmarshaler].
154func (c *Code) UnmarshalText(data []byte) error {

Callers 1

assertCodeRoundTripsFunction · 0.80

Calls 1

StringMethod · 0.95

Tested by 1

assertCodeRoundTripsFunction · 0.64