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

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