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

Method String

compress/compress.go:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (c Compression) String() string {
35 if codec := c.Codec(); codec != nil {
36 return codec.Name()
37 }
38 return "uncompressed"
39}
40
41func (c Compression) MarshalText() ([]byte, error) {
42 return []byte(c.String()), nil

Callers 1

MarshalTextMethod · 0.95

Calls 2

CodecMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected