github.com/goplus/igop@v0.25.0/pkg/hash/adler32/go121_export.go (about)

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