1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 // #include <complex.h> 8 import "C" 9 10 //export exportComplex64 11 func exportComplex64(v complex64) complex64 { 12 return v 13 } 14 15 //export exportComplex128 16 func exportComplex128(v complex128) complex128 { 17 return v 18 } 19 20 //export exportComplexfloat 21 func exportComplexfloat(v C.complexfloat) C.complexfloat { 22 return v 23 } 24 25 //export exportComplexdouble 26 func exportComplexdouble(v C.complexdouble) C.complexdouble { 27 return v 28 } 29 30 func main() {} 31