github.com/goplus/igop@v0.25.0/pkg/crypto/rand/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package rand
     7  
     8  import (
     9  	q "crypto/rand"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{},
    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]igop.TypedConst{},
    49  		UntypedConsts: map[string]igop.UntypedConst{},
    50  	})
    51  }