github.com/goplus/gossa@v0.3.25/pkg/hash/adler32/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package adler32
     6  
     7  import (
     8  	q "hash/adler32"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{},
    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]gossa.TypedConst{},
    33  		UntypedConsts: map[string]gossa.UntypedConst{
    34  			"Size": {"untyped int", constant.MakeInt64(int64(q.Size))},
    35  		},
    36  	})
    37  }