github.com/goplus/igop@v0.25.0/pkg/hash/crc32/go114_export.go (about)

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