github.com/goplus/igop@v0.25.0/pkg/compress/zlib/go117_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package zlib 7 8 import ( 9 q "compress/zlib" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "zlib", 20 Path: "compress/zlib", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "compress/flate": "flate", 24 "encoding/binary": "binary", 25 "errors": "errors", 26 "fmt": "fmt", 27 "hash": "hash", 28 "hash/adler32": "adler32", 29 "io": "io", 30 }, 31 Interfaces: map[string]reflect.Type{ 32 "Resetter": reflect.TypeOf((*q.Resetter)(nil)).Elem(), 33 }, 34 NamedTypes: map[string]reflect.Type{ 35 "Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(), 36 }, 37 AliasTypes: map[string]reflect.Type{}, 38 Vars: map[string]reflect.Value{ 39 "ErrChecksum": reflect.ValueOf(&q.ErrChecksum), 40 "ErrDictionary": reflect.ValueOf(&q.ErrDictionary), 41 "ErrHeader": reflect.ValueOf(&q.ErrHeader), 42 }, 43 Funcs: map[string]reflect.Value{ 44 "NewReader": reflect.ValueOf(q.NewReader), 45 "NewReaderDict": reflect.ValueOf(q.NewReaderDict), 46 "NewWriter": reflect.ValueOf(q.NewWriter), 47 "NewWriterLevel": reflect.ValueOf(q.NewWriterLevel), 48 "NewWriterLevelDict": reflect.ValueOf(q.NewWriterLevelDict), 49 }, 50 TypedConsts: map[string]igop.TypedConst{}, 51 UntypedConsts: map[string]igop.UntypedConst{ 52 "BestCompression": {"untyped int", constant.MakeInt64(int64(q.BestCompression))}, 53 "BestSpeed": {"untyped int", constant.MakeInt64(int64(q.BestSpeed))}, 54 "DefaultCompression": {"untyped int", constant.MakeInt64(int64(q.DefaultCompression))}, 55 "HuffmanOnly": {"untyped int", constant.MakeInt64(int64(q.HuffmanOnly))}, 56 "NoCompression": {"untyped int", constant.MakeInt64(int64(q.NoCompression))}, 57 }, 58 }) 59 }