MCPcopy
hub / github.com/segmentio/kafka-go / MarshalText

Method MarshalText

compress/compress.go:41–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func (c Compression) MarshalText() ([]byte, error) {
42 return []byte(c.String()), nil
43}
44
45func (c *Compression) UnmarshalText(b []byte) error {
46 switch string(b) {

Callers 1

testEncodeDecodeFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by 1

testEncodeDecodeFunction · 0.36