github.com/goplus/gossa@v0.3.25/pkg/archive/zip/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package zip 6 7 import ( 8 q "archive/zip" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "zip", 19 Path: "archive/zip", 20 Deps: map[string]string{ 21 "bufio": "bufio", 22 "compress/flate": "flate", 23 "encoding/binary": "binary", 24 "errors": "errors", 25 "hash": "hash", 26 "hash/crc32": "crc32", 27 "io": "io", 28 "io/ioutil": "ioutil", 29 "os": "os", 30 "path": "path", 31 "strings": "strings", 32 "sync": "sync", 33 "time": "time", 34 "unicode/utf8": "utf8", 35 }, 36 Interfaces: map[string]reflect.Type{}, 37 NamedTypes: map[string]gossa.NamedType{ 38 "Compressor": {reflect.TypeOf((*q.Compressor)(nil)).Elem(), "", ""}, 39 "Decompressor": {reflect.TypeOf((*q.Decompressor)(nil)).Elem(), "", ""}, 40 "File": {reflect.TypeOf((*q.File)(nil)).Elem(), "", "DataOffset,Open,findBodyOffset,hasDataDescriptor"}, 41 "FileHeader": {reflect.TypeOf((*q.FileHeader)(nil)).Elem(), "", "FileInfo,ModTime,Mode,SetModTime,SetMode,isZip64"}, 42 "ReadCloser": {reflect.TypeOf((*q.ReadCloser)(nil)).Elem(), "", "Close"}, 43 "Reader": {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "RegisterDecompressor,decompressor,init"}, 44 "Writer": {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Close,Create,CreateHeader,Flush,RegisterCompressor,SetComment,SetOffset,compressor"}, 45 }, 46 AliasTypes: map[string]reflect.Type{}, 47 Vars: map[string]reflect.Value{ 48 "ErrAlgorithm": reflect.ValueOf(&q.ErrAlgorithm), 49 "ErrChecksum": reflect.ValueOf(&q.ErrChecksum), 50 "ErrFormat": reflect.ValueOf(&q.ErrFormat), 51 }, 52 Funcs: map[string]reflect.Value{ 53 "FileInfoHeader": reflect.ValueOf(q.FileInfoHeader), 54 "NewReader": reflect.ValueOf(q.NewReader), 55 "NewWriter": reflect.ValueOf(q.NewWriter), 56 "OpenReader": reflect.ValueOf(q.OpenReader), 57 "RegisterCompressor": reflect.ValueOf(q.RegisterCompressor), 58 "RegisterDecompressor": reflect.ValueOf(q.RegisterDecompressor), 59 }, 60 TypedConsts: map[string]gossa.TypedConst{ 61 "Deflate": {reflect.TypeOf(q.Deflate), constant.MakeInt64(int64(q.Deflate))}, 62 "Store": {reflect.TypeOf(q.Store), constant.MakeInt64(int64(q.Store))}, 63 }, 64 UntypedConsts: map[string]gossa.UntypedConst{}, 65 }) 66 }