type encoding.TextMarshaler
18 uses
encoding (current package)
encoding.go#L36: type TextMarshaler interface {
encoding/json
encode.go#L412: textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
encode.go#L511: m, ok := v.Interface().(encoding.TextMarshaler)
encode.go#L529: m := va.Interface().(encoding.TextMarshaler)
encode.go#L1011: if tm, ok := w.k.Interface().(encoding.TextMarshaler); ok {
encoding/xml
marshal.go#L403: textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
marshal.go#L446: return p.marshalTextInterface(val.Interface().(encoding.TextMarshaler), defaultStart(typ, finfo, startTemplate))
marshal.go#L451: return p.marshalTextInterface(pv.Interface().(encoding.TextMarshaler), defaultStart(pv.Type(), finfo, startTemplate))
marshal.go#L584: text, err := val.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L595: text, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L683: func (p *printer) marshalTextInterface(val encoding.TextMarshaler, start StartElement) error {
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#L55: if m, ok := m.(encoding.TextMarshaler); ok {
text_encode.go#L77: if m, ok := m.(encoding.TextMarshaler); ok {
text_encode.go#L383: if m2, ok := m.Interface().(encoding.TextMarshaler); ok {
github.com/vmihailenco/msgpack/v5
encode_value.go#L238: marshaler := v.Interface().(encoding.TextMarshaler)
types.go#L31: textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()