Files
moxa/stdlib/go1_13_encoding.go
Ludovic Fernandez bfa9a267be Update stdlib for go1.13 (#351)
* chore: generate stdlib for go1.13

* chore: update CI configuration.

* fix: struct13 test is too dependent of the Go implementation.

* fix: disable test import4.go
2019-09-09 09:59:26 +02:00

57 lines
1.9 KiB
Go

// Code generated by 'goexports encoding'. DO NOT EDIT.
// +build go1.13,!go1.14
package stdlib
import (
"encoding"
"reflect"
)
func init() {
Symbols["encoding"] = map[string]reflect.Value{
// type definitions
"BinaryMarshaler": reflect.ValueOf((*encoding.BinaryMarshaler)(nil)),
"BinaryUnmarshaler": reflect.ValueOf((*encoding.BinaryUnmarshaler)(nil)),
"TextMarshaler": reflect.ValueOf((*encoding.TextMarshaler)(nil)),
"TextUnmarshaler": reflect.ValueOf((*encoding.TextUnmarshaler)(nil)),
// interface wrapper definitions
"_BinaryMarshaler": reflect.ValueOf((*_encoding_BinaryMarshaler)(nil)),
"_BinaryUnmarshaler": reflect.ValueOf((*_encoding_BinaryUnmarshaler)(nil)),
"_TextMarshaler": reflect.ValueOf((*_encoding_TextMarshaler)(nil)),
"_TextUnmarshaler": reflect.ValueOf((*_encoding_TextUnmarshaler)(nil)),
}
}
// _encoding_BinaryMarshaler is an interface wrapper for BinaryMarshaler type
type _encoding_BinaryMarshaler struct {
WMarshalBinary func() (data []byte, err error)
}
func (W _encoding_BinaryMarshaler) MarshalBinary() (data []byte, err error) { return W.WMarshalBinary() }
// _encoding_BinaryUnmarshaler is an interface wrapper for BinaryUnmarshaler type
type _encoding_BinaryUnmarshaler struct {
WUnmarshalBinary func(data []byte) error
}
func (W _encoding_BinaryUnmarshaler) UnmarshalBinary(data []byte) error {
return W.WUnmarshalBinary(data)
}
// _encoding_TextMarshaler is an interface wrapper for TextMarshaler type
type _encoding_TextMarshaler struct {
WMarshalText func() (text []byte, err error)
}
func (W _encoding_TextMarshaler) MarshalText() (text []byte, err error) { return W.WMarshalText() }
// _encoding_TextUnmarshaler is an interface wrapper for TextUnmarshaler type
type _encoding_TextUnmarshaler struct {
WUnmarshalText func(text []byte) error
}
func (W _encoding_TextUnmarshaler) UnmarshalText(text []byte) error { return W.WUnmarshalText(text) }