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