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