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

Method MarshalText

produce.go:38–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (acks RequiredAcks) MarshalText() ([]byte, error) {
39 return []byte(acks.String()), nil
40}
41
42func (acks *RequiredAcks) UnmarshalText(b []byte) error {
43 switch string(b) {

Callers 6

TestRequiredAcksFunction · 0.45
TestResourceTypeMarshalFunction · 0.45
TestResourceTypeBrokerFunction · 0.45
TestPatternTypeMarshalFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by 6

TestRequiredAcksFunction · 0.36
TestResourceTypeMarshalFunction · 0.36
TestResourceTypeBrokerFunction · 0.36
TestPatternTypeMarshalFunction · 0.36