github.com/goplus/igop@v0.25.0/pkg/math/rand/go120_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.20 && !go1.21
     4  // +build go1.20,!go1.21
     5  
     6  package rand
     7  
     8  import (
     9  	q "math/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: "math/rand",
    20  		Deps: map[string]string{
    21  			"internal/godebug": "godebug",
    22  			"math":             "math",
    23  			"sync":             "sync",
    24  			"unsafe":           "unsafe",
    25  		},
    26  		Interfaces: map[string]reflect.Type{
    27  			"Source":   reflect.TypeOf((*q.Source)(nil)).Elem(),
    28  			"Source64": reflect.TypeOf((*q.Source64)(nil)).Elem(),
    29  		},
    30  		NamedTypes: map[string]reflect.Type{
    31  			"Rand": reflect.TypeOf((*q.Rand)(nil)).Elem(),
    32  			"Zipf": reflect.TypeOf((*q.Zipf)(nil)).Elem(),
    33  		},
    34  		AliasTypes: map[string]reflect.Type{},
    35  		Vars:       map[string]reflect.Value{},
    36  		Funcs: map[string]reflect.Value{
    37  			"ExpFloat64":  reflect.ValueOf(q.ExpFloat64),
    38  			"Float32":     reflect.ValueOf(q.Float32),
    39  			"Float64":     reflect.ValueOf(q.Float64),
    40  			"Int":         reflect.ValueOf(q.Int),
    41  			"Int31":       reflect.ValueOf(q.Int31),
    42  			"Int31n":      reflect.ValueOf(q.Int31n),
    43  			"Int63":       reflect.ValueOf(q.Int63),
    44  			"Int63n":      reflect.ValueOf(q.Int63n),
    45  			"Intn":        reflect.ValueOf(q.Intn),
    46  			"New":         reflect.ValueOf(q.New),
    47  			"NewSource":   reflect.ValueOf(q.NewSource),
    48  			"NewZipf":     reflect.ValueOf(q.NewZipf),
    49  			"NormFloat64": reflect.ValueOf(q.NormFloat64),
    50  			"Perm":        reflect.ValueOf(q.Perm),
    51  			"Read":        reflect.ValueOf(q.Read),
    52  			"Seed":        reflect.ValueOf(q.Seed),
    53  			"Shuffle":     reflect.ValueOf(q.Shuffle),
    54  			"Uint32":      reflect.ValueOf(q.Uint32),
    55  			"Uint64":      reflect.ValueOf(q.Uint64),
    56  		},
    57  		TypedConsts:   map[string]igop.TypedConst{},
    58  		UntypedConsts: map[string]igop.UntypedConst{},
    59  	})
    60  }