type encoding.TextMarshaler
18 uses
encoding (current package)
encoding.go#L54: type TextMarshaler interface {
encoding/json
encode.go#L416: textMarshalerType = reflect.TypeFor[encoding.TextMarshaler]()
encode.go#L519: m, ok := v.Interface().(encoding.TextMarshaler)
encode.go#L537: m := va.Interface().(encoding.TextMarshaler)
encode.go#L994: if tm, ok := k.Interface().(encoding.TextMarshaler); ok {
encoding/xml
marshal.go#L422: textMarshalerType = reflect.TypeFor[encoding.TextMarshaler]()
marshal.go#L465: return p.marshalTextInterface(val.Interface().(encoding.TextMarshaler), defaultStart(typ, finfo, startTemplate))
marshal.go#L470: return p.marshalTextInterface(pv.Interface().(encoding.TextMarshaler), defaultStart(pv.Type(), finfo, startTemplate))
marshal.go#L609: text, err := val.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L620: text, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L708: func (p *printer) marshalTextInterface(val encoding.TextMarshaler, start StartElement) error {
marshal.go#L858: data, err := vf.Interface().(encoding.TextMarshaler).MarshalText()
marshal.go#L870: data, err := pv.Interface().(encoding.TextMarshaler).MarshalText()
flag
flag.go#L301: func newTextValue(val encoding.TextMarshaler, p encoding.TextUnmarshaler) textValue {
flag.go#L326: if m, ok := v.p.(encoding.TextMarshaler); ok {
flag.go#L963: func (f *FlagSet) TextVar(p encoding.TextUnmarshaler, name string, value encoding.TextMarshaler, usage string) {
flag.go#L972: func TextVar(p encoding.TextUnmarshaler, name string, value encoding.TextMarshaler, usage string) {
log/slog
text_handler.go#L103: if tm, ok := v.any.(encoding.TextMarshaler); ok {