github.com/goplus/gossa@v0.3.25/pkg/crypto/md5/go117_export.go (about)

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