Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
41
func
(c Compression) MarshalText() ([]byte, error) {
42
return
[]byte(c.String()), nil
43
}
44
45
func
(c *Compression) UnmarshalText(b []byte) error {
46
switch
string(b) {
Callers
1
testEncodeDecode
Function · 0.45
Calls
1
String
Method · 0.95
Tested by
1
testEncodeDecode
Function · 0.36