github.com/goplus/gossa@v0.3.25/pkg/hash/crc64/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 crc64
     7  
     8  import (
     9  	q "hash/crc64"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/gossa"
    15  )
    16  
    17  func init() {
    18  	gossa.RegisterPackage(&gossa.Package{
    19  		Name: "crc64",
    20  		Path: "hash/crc64",
    21  		Deps: map[string]string{
    22  			"errors": "errors",
    23  			"hash":   "hash",
    24  			"sync":   "sync",
    25  		},
    26  		Interfaces: map[string]reflect.Type{},
    27  		NamedTypes: map[string]gossa.NamedType{
    28  			"Table": {reflect.TypeOf((*q.Table)(nil)).Elem(), "", ""},
    29  		},
    30  		AliasTypes: map[string]reflect.Type{},
    31  		Vars:       map[string]reflect.Value{},
    32  		Funcs: map[string]reflect.Value{
    33  			"Checksum":  reflect.ValueOf(q.Checksum),
    34  			"MakeTable": reflect.ValueOf(q.MakeTable),
    35  			"New":       reflect.ValueOf(q.New),
    36  			"Update":    reflect.ValueOf(q.Update),
    37  		},
    38  		TypedConsts: map[string]gossa.TypedConst{},
    39  		UntypedConsts: map[string]gossa.UntypedConst{
    40  			"ECMA": {"untyped int", constant.MakeUint64(uint64(q.ECMA))},
    41  			"ISO":  {"untyped int", constant.MakeUint64(uint64(q.ISO))},
    42  			"Size": {"untyped int", constant.MakeInt64(int64(q.Size))},
    43  		},
    44  	})
    45  }