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#L998: buf, err := tm.MarshalText()
encoding/xml
marshal.go#L609: text, err := val.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L620: text, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L712: text, err := val.MarshalText()
marshal.go#L858: data, err := vf.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L870: data, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
flag
flag.go#L327: if b, err := m.MarshalText(); err == nil {
log/slog
text_handler.go#L104: data, err := tm.MarshalText()