github.com/goplus/igop@v0.25.0/pkg/hash/crc64/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package crc64
     6  
     7  import (
     8  	q "hash/crc64"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "crc64",
    19  		Path: "hash/crc64",
    20  		Deps: map[string]string{
    21  			"errors": "errors",
    22  			"hash":   "hash",
    23  			"sync":   "sync",
    24  		},
    25  		Interfaces: map[string]reflect.Type{},
    26  		NamedTypes: map[string]reflect.Type{
    27  			"Table": reflect.TypeOf((*q.Table)(nil)).Elem(),
    28  		},
    29  		AliasTypes: map[string]reflect.Type{},
    30  		Vars:       map[string]reflect.Value{},
    31  		Funcs: map[string]reflect.Value{
    32  			"Checksum":  reflect.ValueOf(q.Checksum),
    33  			"MakeTable": reflect.ValueOf(q.MakeTable),
    34  			"New":       reflect.ValueOf(q.New),
    35  			"Update":    reflect.ValueOf(q.Update),
    36  		},
    37  		TypedConsts: map[string]igop.TypedConst{},
    38  		UntypedConsts: map[string]igop.UntypedConst{
    39  			"ECMA": {"untyped int", constant.MakeUint64(uint64(q.ECMA))},
    40  			"ISO":  {"untyped int", constant.MakeUint64(uint64(q.ISO))},
    41  			"Size": {"untyped int", constant.MakeInt64(int64(q.Size))},
    42  		},
    43  	})
    44  }