go2hx

manual

github

Haxe extern

Refrence Haxe code with ease from Golang.

main.go

package main

func main() {
    test(10)
}

//#go2hx sub.Foo.data
func test(i int) {
    println("Go:",i)
}

sub/Foo.hx

package sub;
import stdgo.StdGoTypes;

function data(i:GoInt) {
  Sys.println("Haxe: " + i);
}

Notes