gojava

command module
v0.0.0-...-891bb03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

README

GoJava - Java bindings to Go packages Build Status

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 [-v] [-o <jar>] [-s <dir>] build [<pkg1>, [<pkg2>...]]

	This generates a jar containing Java bindings to the specified Go packages.

	-o string
	    Path to write the generated jar file. (default "libgojava.jar")
	-s string
	    Additional path to scan for Java source code. These files will be compiled and
	    included in the final jar.
	-v  Verbose output.

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.

Documentation

Overview

Command gojava is a tool for creating Java bindings to Go packages.

Usage

gojava [-v] [-o <jar>] [-s <dir>] build [<pkg1>, [<pkg2>...]]

This generates a jar containing Java bindings to the specified Go packages.

-o string
    Path to write the generated jar file. (default "libgojava.jar")
-s string
    Additional path to scan for Java source code. These files will be compiled and
    included in the final jar.
-v  Verbose output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL