warning: heavily experimental still a ways to go before an alpha.
- Download Go 1.16+
- Download Haxe 4.3.0-rc.1 or later
- optional: Download Hashlink 1.12+ (better performance and used for testing)
Install:
haxelib git go2hx https://github.com/go2hx/go2hxLocal file compile and interp (good for prototyping):
haxelib run go2hx ./main.go --interpexample:
build.hxml
-m Main
-lib go2hx
--interpimport stdgo.sort.Sort.intsAreSorted;
import stdgo.unicode.Unicode.isSymbol;
function main() {
trace(isSymbol(".".code));
trace(intsAreSorted([30,24,67]));
}warning: most libraries will not work because of the limited supported of the standard libraries
create a go mod file:
go mod init testget the library
go get golang.org/x/example/stringutilcompile with go2hx
haxelib run go2hx golang.org/x/example/stringutilA spiritual successor to Tardisgo written by Elliott Stoneham, A maintainer, mentor, and code contribuitor of this project. Elliott's wise counsel, solid engineering design, and effective programming is the core of this project and go2hx would not exist without him.
haxelib dev go2hx .
Look at Run.hx to see how the building occurs.