In Golang how to export the function that returns array of doubles. The way it was possible before seems to return "runtime error: cgo result has Go pointer" now:
//export Init
func Init(filename string) (C.int, unsafe.Pointer) {
var doubles [10]float64
doubles[3] = 1.5
return 10, unsafe.Pointer(&doubles[0])
}