github.com/goplus/gossa@v0.3.25/pkg/crypto/rand/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package rand
     6  
     7  import (
     8  	q "crypto/rand"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "rand",
    18  		Path: "crypto/rand",
    19  		Deps: map[string]string{
    20  			"bufio":           "bufio",
    21  			"crypto/aes":      "aes",
    22  			"crypto/cipher":   "cipher",
    23  			"encoding/binary": "binary",
    24  			"errors":          "errors",
    25  			"io":              "io",
    26  			"math/big":        "big",
    27  			"os":              "os",
    28  			"runtime":         "runtime",
    29  			"sync":            "sync",
    30  			"sync/atomic":     "atomic",
    31  			"syscall":         "syscall",
    32  			"time":            "time",
    33  		},
    34  		Interfaces: map[string]reflect.Type{},
    35  		NamedTypes: map[string]gossa.NamedType{},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars: map[string]reflect.Value{
    38  			"Reader": reflect.ValueOf(&q.Reader),
    39  		},
    40  		Funcs: map[string]reflect.Value{
    41  			"Int":   reflect.ValueOf(q.Int),
    42  			"Prime": reflect.ValueOf(q.Prime),
    43  			"Read":  reflect.ValueOf(q.Read),
    44  		},
    45  		TypedConsts:   map[string]gossa.TypedConst{},
    46  		UntypedConsts: map[string]gossa.UntypedConst{},
    47  	})
    48  }