Using cgo with the go command
c.go
// #include <stdlib.h> import "C"
If there is a blank line between // and import, it doesn't seem to be recognized as a preamble.
Recommended Posts