encoding.TextMarshaler.MarshalText (method)
13 uses
encoding (current package)
encoding.go#L37: MarshalText() (text []byte, err error)
encoding/json
encode.go#L516: b, err := m.MarshalText()
encode.go#L530: b, err := m.MarshalText()
encode.go#L1015: buf, err := tm.MarshalText()
encoding/xml
marshal.go#L584: text, err := val.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L595: text, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L687: text, err := val.MarshalText()
marshal.go#L833: data, err := vf.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L845: data, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
github.com/golang/protobuf/proto
text_encode.go#L56: return m.MarshalText()
text_encode.go#L78: b, err := m.MarshalText()
text_encode.go#L384: b, err := m2.MarshalText()
github.com/vmihailenco/msgpack/v5
encode_value.go#L239: data, err := marshaler.MarshalText()