Created
August 11, 2017 15:28
-
-
Save irondoge/b23ff71f1714beedbd489ebf71d9d3a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CCode (cheader_filename = "hello.h")] | |
namespace Go { | |
[CCode (cname = "hello")] | |
extern void hello(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"C" | |
) | |
//export hello | |
func hello() { | |
fmt.Println("hello, world from Go") | |
} | |
func main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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