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

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