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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     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  			"sync/atomic":  "atomic",
    26  			"unsafe":       "unsafe",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]reflect.Type{
    30  			"Table": reflect.TypeOf((*q.Table)(nil)).Elem(),
    31  		},
    32  		AliasTypes: map[string]reflect.Type{},
    33  		Vars: map[string]reflect.Value{
    34  			"IEEETable": reflect.ValueOf(&q.IEEETable),
    35  		},
    36  		Funcs: map[string]reflect.Value{
    37  			"Checksum":     reflect.ValueOf(q.Checksum),
    38  			"ChecksumIEEE": reflect.ValueOf(q.ChecksumIEEE),
    39  			"MakeTable":    reflect.ValueOf(q.MakeTable),
    40  			"New":          reflect.ValueOf(q.New),
    41  			"NewIEEE":      reflect.ValueOf(q.NewIEEE),
    42  			"Update":       reflect.ValueOf(q.Update),
    43  		},
    44  		TypedConsts: map[string]igop.TypedConst{},
    45  		UntypedConsts: map[string]igop.UntypedConst{
    46  			"Castagnoli": {"untyped int", constant.MakeInt64(int64(q.Castagnoli))},
    47  			"IEEE":       {"untyped int", constant.MakeInt64(int64(q.IEEE))},
    48  			"Koopman":    {"untyped int", constant.MakeInt64(int64(q.Koopman))},
    49  			"Size":       {"untyped int", constant.MakeInt64(int64(q.Size))},
    50  		},
    51  	})
    52  }