github.com/goplus/igop@v0.25.0/pkg/archive/zip/go114_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package zip
     6  
     7  import (
     8  	q "archive/zip"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{
    38  			"Compressor":   reflect.TypeOf((*q.Compressor)(nil)).Elem(),
    39  			"Decompressor": reflect.TypeOf((*q.Decompressor)(nil)).Elem(),
    40  			"File":         reflect.TypeOf((*q.File)(nil)).Elem(),
    41  			"FileHeader":   reflect.TypeOf((*q.FileHeader)(nil)).Elem(),
    42  			"ReadCloser":   reflect.TypeOf((*q.ReadCloser)(nil)).Elem(),
    43  			"Reader":       reflect.TypeOf((*q.Reader)(nil)).Elem(),
    44  			"Writer":       reflect.TypeOf((*q.Writer)(nil)).Elem(),
    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]igop.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]igop.UntypedConst{},
    65  	})
    66  }