package main import "C" //export DemoHelloGo func DemoHelloGo() { println("Hello, from Go!") } // CGo works more easily with an executable build target. func main() {}