github.com/goplus/gossa@v0.3.25/pkg/math/rand/go116_export.go (about)

     1  // export by github.com/goplus/gossa/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/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{
    28  			"Rand": {reflect.TypeOf((*q.Rand)(nil)).Elem(), "", "ExpFloat64,Float32,Float64,Int,Int31,Int31n,Int63,Int63n,Intn,NormFloat64,Perm,Read,Seed,Shuffle,Uint32,Uint64,int31n"},
    29  			"Zipf": {reflect.TypeOf((*q.Zipf)(nil)).Elem(), "", "Uint64,h,hinv"},
    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]gossa.TypedConst{},
    55  		UntypedConsts: map[string]gossa.UntypedConst{},
    56  	})
    57  }