github.com/goplus/igop@v0.25.0/pkg/compress/gzip/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package gzip
     6  
     7  import (
     8  	q "compress/gzip"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "gzip",
    19  		Path: "compress/gzip",
    20  		Deps: map[string]string{
    21  			"bufio":           "bufio",
    22  			"compress/flate":  "flate",
    23  			"encoding/binary": "binary",
    24  			"errors":          "errors",
    25  			"fmt":             "fmt",
    26  			"hash/crc32":      "crc32",
    27  			"io":              "io",
    28  			"time":            "time",
    29  		},
    30  		Interfaces: map[string]reflect.Type{},
    31  		NamedTypes: map[string]reflect.Type{
    32  			"Header": reflect.TypeOf((*q.Header)(nil)).Elem(),
    33  			"Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(),
    34  			"Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(),
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars: map[string]reflect.Value{
    38  			"ErrChecksum": reflect.ValueOf(&q.ErrChecksum),
    39  			"ErrHeader":   reflect.ValueOf(&q.ErrHeader),
    40  		},
    41  		Funcs: map[string]reflect.Value{
    42  			"NewReader":      reflect.ValueOf(q.NewReader),
    43  			"NewWriter":      reflect.ValueOf(q.NewWriter),
    44  			"NewWriterLevel": reflect.ValueOf(q.NewWriterLevel),
    45  		},
    46  		TypedConsts: map[string]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{
    48  			"BestCompression":    {"untyped int", constant.MakeInt64(int64(q.BestCompression))},
    49  			"BestSpeed":          {"untyped int", constant.MakeInt64(int64(q.BestSpeed))},
    50  			"DefaultCompression": {"untyped int", constant.MakeInt64(int64(q.DefaultCompression))},
    51  			"HuffmanOnly":        {"untyped int", constant.MakeInt64(int64(q.HuffmanOnly))},
    52  			"NoCompression":      {"untyped int", constant.MakeInt64(int64(q.NoCompression))},
    53  		},
    54  	})
    55  }