encoding.TextMarshaler.MarshalText (method)
11 uses
encoding (current package)
encoding.go#L55: MarshalText() (text []byte, err error)
encoding/json
encode.go#L524: b, err := m.MarshalText()
encode.go#L538: b, err := m.MarshalText()
encode.go#L987: buf, err := tm.MarshalText()
encoding/xml
marshal.go#L616: text, err := textMarshaler.MarshalText()
marshal.go#L629: text, err := textMarshaler.MarshalText()
marshal.go#L723: text, err := val.MarshalText()
marshal.go#L870: data, err := textMarshaler.MarshalText()
marshal.go#L884: data, err := textMarshaler.MarshalText()
flag
flag.go#L327: if b, err := m.MarshalText(); err == nil {
log/slog
text_handler.go#L104: data, err := tm.MarshalText()