github.com/goplus/gossa@v0.3.25/pkg/math/cmplx/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 cmplx
     7  
     8  import (
     9  	q "math/cmplx"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "cmplx",
    19  		Path: "math/cmplx",
    20  		Deps: map[string]string{
    21  			"math":      "math",
    22  			"math/bits": "bits",
    23  		},
    24  		Interfaces: map[string]reflect.Type{},
    25  		NamedTypes: map[string]gossa.NamedType{},
    26  		AliasTypes: map[string]reflect.Type{},
    27  		Vars:       map[string]reflect.Value{},
    28  		Funcs: map[string]reflect.Value{
    29  			"Abs":   reflect.ValueOf(q.Abs),
    30  			"Acos":  reflect.ValueOf(q.Acos),
    31  			"Acosh": reflect.ValueOf(q.Acosh),
    32  			"Asin":  reflect.ValueOf(q.Asin),
    33  			"Asinh": reflect.ValueOf(q.Asinh),
    34  			"Atan":  reflect.ValueOf(q.Atan),
    35  			"Atanh": reflect.ValueOf(q.Atanh),
    36  			"Conj":  reflect.ValueOf(q.Conj),
    37  			"Cos":   reflect.ValueOf(q.Cos),
    38  			"Cosh":  reflect.ValueOf(q.Cosh),
    39  			"Cot":   reflect.ValueOf(q.Cot),
    40  			"Exp":   reflect.ValueOf(q.Exp),
    41  			"Inf":   reflect.ValueOf(q.Inf),
    42  			"IsInf": reflect.ValueOf(q.IsInf),
    43  			"IsNaN": reflect.ValueOf(q.IsNaN),
    44  			"Log":   reflect.ValueOf(q.Log),
    45  			"Log10": reflect.ValueOf(q.Log10),
    46  			"NaN":   reflect.ValueOf(q.NaN),
    47  			"Phase": reflect.ValueOf(q.Phase),
    48  			"Polar": reflect.ValueOf(q.Polar),
    49  			"Pow":   reflect.ValueOf(q.Pow),
    50  			"Rect":  reflect.ValueOf(q.Rect),
    51  			"Sin":   reflect.ValueOf(q.Sin),
    52  			"Sinh":  reflect.ValueOf(q.Sinh),
    53  			"Sqrt":  reflect.ValueOf(q.Sqrt),
    54  			"Tan":   reflect.ValueOf(q.Tan),
    55  			"Tanh":  reflect.ValueOf(q.Tanh),
    56  		},
    57  		TypedConsts:   map[string]gossa.TypedConst{},
    58  		UntypedConsts: map[string]gossa.UntypedConst{},
    59  	})
    60  }