github.com/goplus/igop@v0.25.0/pkg/compress/lzw/go117_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package lzw
     7  
     8  import (
     9  	q "compress/lzw"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "lzw",
    20  		Path: "compress/lzw",
    21  		Deps: map[string]string{
    22  			"bufio":  "bufio",
    23  			"errors": "errors",
    24  			"fmt":    "fmt",
    25  			"io":     "io",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"Order":  reflect.TypeOf((*q.Order)(nil)).Elem(),
    30  			"Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(),
    31  			"Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(),
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars:       map[string]reflect.Value{},
    35  		Funcs: map[string]reflect.Value{
    36  			"NewReader": reflect.ValueOf(q.NewReader),
    37  			"NewWriter": reflect.ValueOf(q.NewWriter),
    38  		},
    39  		TypedConsts: map[string]igop.TypedConst{
    40  			"LSB": {reflect.TypeOf(q.LSB), constant.MakeInt64(int64(q.LSB))},
    41  			"MSB": {reflect.TypeOf(q.MSB), constant.MakeInt64(int64(q.MSB))},
    42  		},
    43  		UntypedConsts: map[string]igop.UntypedConst{},
    44  	})
    45  }