How do I get proper parameter names in cgo exported functions?
问题 I'm writing a library in Go that I want to export to a c-shared-library. It works just fine, however i find it a little annoying that the exported header uses p0 , p1 , p2 , ... for parameter names instead of the original parameter names from Go. Is there a way to change this behavior or am I simply stuck with that? I am using go version go1.12.7 darwin/amd64 Example: package main /* #import <stdlib.h> */ import "C" import ( "fmt" ) func main() {} //export MyFunc func MyFunc(input *C.char) {