Files
moxa/stdlib/compress_gzip.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

29 lines
1003 B
Go

package stdlib
// Generated by 'goexports compress/gzip'. Do not edit!
import (
"compress/gzip"
"reflect"
)
func init() {
Value["compress/gzip"] = map[string]reflect.Value{
"BestCompression": reflect.ValueOf(gzip.BestCompression),
"BestSpeed": reflect.ValueOf(gzip.BestSpeed),
"DefaultCompression": reflect.ValueOf(gzip.DefaultCompression),
"ErrChecksum": reflect.ValueOf(gzip.ErrChecksum),
"ErrHeader": reflect.ValueOf(gzip.ErrHeader),
"HuffmanOnly": reflect.ValueOf(gzip.HuffmanOnly),
"NewReader": reflect.ValueOf(gzip.NewReader),
"NewWriter": reflect.ValueOf(gzip.NewWriter),
"NewWriterLevel": reflect.ValueOf(gzip.NewWriterLevel),
"NoCompression": reflect.ValueOf(gzip.NoCompression),
}
Type["compress/gzip"] = map[string]reflect.Type{
"Header": reflect.TypeOf((*gzip.Header)(nil)).Elem(),
"Reader": reflect.TypeOf((*gzip.Reader)(nil)).Elem(),
"Writer": reflect.TypeOf((*gzip.Writer)(nil)).Elem(),
}
}