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