This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
19 lines
535 B
Go
19 lines
535 B
Go
package stdlib
|
|
|
|
// Generated by 'goexports encoding'. Do not edit!
|
|
|
|
import (
|
|
"encoding"
|
|
"reflect"
|
|
)
|
|
|
|
func init() {
|
|
Value["encoding"] = map[string]reflect.Value{}
|
|
Type["encoding"] = map[string]reflect.Type{
|
|
"BinaryMarshaler": reflect.TypeOf((*encoding.BinaryMarshaler)(nil)).Elem(),
|
|
"BinaryUnmarshaler": reflect.TypeOf((*encoding.BinaryUnmarshaler)(nil)).Elem(),
|
|
"TextMarshaler": reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem(),
|
|
"TextUnmarshaler": reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem(),
|
|
}
|
|
}
|