github.com/goplus/gossa@v0.3.25/pkg/compress/flate/go117_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package flate 7 8 import ( 9 q "compress/flate" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "flate", 20 Path: "compress/flate", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "fmt": "fmt", 24 "io": "io", 25 "math": "math", 26 "math/bits": "bits", 27 "sort": "sort", 28 "strconv": "strconv", 29 "sync": "sync", 30 }, 31 Interfaces: map[string]reflect.Type{ 32 "Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(), 33 "Resetter": reflect.TypeOf((*q.Resetter)(nil)).Elem(), 34 }, 35 NamedTypes: map[string]gossa.NamedType{ 36 "CorruptInputError": {reflect.TypeOf((*q.CorruptInputError)(nil)).Elem(), "Error", ""}, 37 "InternalError": {reflect.TypeOf((*q.InternalError)(nil)).Elem(), "Error", ""}, 38 "ReadError": {reflect.TypeOf((*q.ReadError)(nil)).Elem(), "", "Error"}, 39 "WriteError": {reflect.TypeOf((*q.WriteError)(nil)).Elem(), "", "Error"}, 40 "Writer": {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Close,Flush,Reset,Write"}, 41 }, 42 AliasTypes: map[string]reflect.Type{}, 43 Vars: map[string]reflect.Value{}, 44 Funcs: map[string]reflect.Value{ 45 "NewReader": reflect.ValueOf(q.NewReader), 46 "NewReaderDict": reflect.ValueOf(q.NewReaderDict), 47 "NewWriter": reflect.ValueOf(q.NewWriter), 48 "NewWriterDict": reflect.ValueOf(q.NewWriterDict), 49 }, 50 TypedConsts: map[string]gossa.TypedConst{}, 51 UntypedConsts: map[string]gossa.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 }