mirror of
https://github.com/go-i2p/gojava.git
synced 2025-07-03 09:57:47 -04:00
ba1a7e084563a9488d884736eda4a8f5e4914f99

GoJava - Java bindings to Go packages 
GoJava uses a forked version of gomobile to generate Java bindings to Go packages. The same set of types are supported. Details on how the binding works can be found here.
Usage
gojava build [-o <jar>] [<pkg1>, [<pkg2>...]]
This generates a jar containing Java bindings to the specified Go packages.
-o string
Path to the generated jar file (default "libgojava.jar")
You can include the generated jar in your build using the build tool of your choice. The jar contains a native library (built for the build platform) which is loaded automatically. Cross platform builds are not currently supported.
NOTE: This has only been tested on an OSX developer machine and Linux (on Travis) and not in production.
Description
Languages
Go
77.1%
Java
22.9%