github.com/goplus/gossa@v0.3.25/pkg/crypto/rand/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 rand
     7  
     8  import (
     9  	q "crypto/rand"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "rand",
    19  		Path: "crypto/rand",
    20  		Deps: map[string]string{
    21  			"bufio":                 "bufio",
    22  			"crypto/aes":            "aes",
    23  			"crypto/cipher":         "cipher",
    24  			"encoding/binary":       "binary",
    25  			"errors":                "errors",
    26  			"internal/syscall/unix": "unix",
    27  			"io":                    "io",
    28  			"io/fs":                 "fs",
    29  			"math/big":              "big",
    30  			"os":                    "os",
    31  			"runtime":               "runtime",
    32  			"sync":                  "sync",
    33  			"sync/atomic":           "atomic",
    34  			"syscall":               "syscall",
    35  			"time":                  "time",
    36  		},
    37  		Interfaces: map[string]reflect.Type{},
    38  		NamedTypes: map[string]gossa.NamedType{},
    39  		AliasTypes: map[string]reflect.Type{},
    40  		Vars: map[string]reflect.Value{
    41  			"Reader": reflect.ValueOf(&q.Reader),
    42  		},
    43  		Funcs: map[string]reflect.Value{
    44  			"Int":   reflect.ValueOf(q.Int),
    45  			"Prime": reflect.ValueOf(q.Prime),
    46  			"Read":  reflect.ValueOf(q.Read),
    47  		},
    48  		TypedConsts:   map[string]gossa.TypedConst{},
    49  		UntypedConsts: map[string]gossa.UntypedConst{},
    50  	})
    51  }