github.com/goplus/gossa@v0.3.25/pkg/compress/lzw/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package lzw
     7  
     8  import (
     9  	q "compress/lzw"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/gossa"
    15  )
    16  
    17  func init() {
    18  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{
    29  			"Order":  {reflect.TypeOf((*q.Order)(nil)).Elem(), "", ""},
    30  			"Reader": {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "Close,Read,Reset,decode,init,readLSB,readMSB"},
    31  			"Writer": {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Close,Reset,Write,incHi,init,writeLSB,writeMSB"},
    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]gossa.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]gossa.UntypedConst{},
    44  	})
    45  }