You need to convert your go string to *C.char. C.Cstring is utility function for that.
go
package main
import "C"
//export returnString
func returnString() *C.char {
gostring := "hello world"
return C.CString(gostring)
}
func main() {}
https://stackoverflow.com/questions/48686763/cgo-result-has-go-pointer