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

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