Skip to content

Instantly share code, notes, and snippets.

@irondoge
Created August 11, 2017 15:28
Show Gist options
  • Save irondoge/b23ff71f1714beedbd489ebf71d9d3a7 to your computer and use it in GitHub Desktop.
Save irondoge/b23ff71f1714beedbd489ebf71d9d3a7 to your computer and use it in GitHub Desktop.
[CCode (cheader_filename = "hello.h")]
namespace Go {
[CCode (cname = "hello")]
extern void hello();
}
package main
import (
"fmt"
"C"
)
//export hello
func hello() {
fmt.Println("hello, world from Go")
}
func main() {}
public static int main(string[] args) {
stdout.printf("hello, world from Vala\n");
Go.hello();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment