github.com/goplus/gossa@v0.3.25/pkg/compress/gzip/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 gzip 7 8 import ( 9 q "compress/gzip" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "gzip", 20 Path: "compress/gzip", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "compress/flate": "flate", 24 "encoding/binary": "binary", 25 "errors": "errors", 26 "fmt": "fmt", 27 "hash/crc32": "crc32", 28 "io": "io", 29 "time": "time", 30 }, 31 Interfaces: map[string]reflect.Type{}, 32 NamedTypes: map[string]gossa.NamedType{ 33 "Header": {reflect.TypeOf((*q.Header)(nil)).Elem(), "", ""}, 34 "Reader": {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "Close,Multistream,Read,Reset,readHeader,readString"}, 35 "Writer": {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Close,Flush,Reset,Write,init,writeBytes,writeString"}, 36 }, 37 AliasTypes: map[string]reflect.Type{}, 38 Vars: map[string]reflect.Value{ 39 "ErrChecksum": reflect.ValueOf(&q.ErrChecksum), 40 "ErrHeader": reflect.ValueOf(&q.ErrHeader), 41 }, 42 Funcs: map[string]reflect.Value{ 43 "NewReader": reflect.ValueOf(q.NewReader), 44 "NewWriter": reflect.ValueOf(q.NewWriter), 45 "NewWriterLevel": reflect.ValueOf(q.NewWriterLevel), 46 }, 47 TypedConsts: map[string]gossa.TypedConst{}, 48 UntypedConsts: map[string]gossa.UntypedConst{ 49 "BestCompression": {"untyped int", constant.MakeInt64(int64(q.BestCompression))}, 50 "BestSpeed": {"untyped int", constant.MakeInt64(int64(q.BestSpeed))}, 51 "DefaultCompression": {"untyped int", constant.MakeInt64(int64(q.DefaultCompression))}, 52 "HuffmanOnly": {"untyped int", constant.MakeInt64(int64(q.HuffmanOnly))}, 53 "NoCompression": {"untyped int", constant.MakeInt64(int64(q.NoCompression))}, 54 }, 55 }) 56 }