import "golang.org/x/mobile/bind"
Package bind implements a code generator for gobind.
See the documentation on the gobind command for usage details and the list of currently supported types. (http://godoc.org/golang.org/x/mobile/cmd/gobind)
bind.go gen.go gengo.go genjava.go genobjc.go printer.go types.go
func GenGo(conf *GeneratorConfig) error
GenGo generates a Go stub to support foreign language APIs.
func GenJava(conf *GeneratorConfig, javaPkg string, ft fileType) error
GenJava generates a Java API from a Go package.
func GenObjc(conf *GeneratorConfig, prefix string, ft fileType) error
GenObjc generates the Objective-C API from a Go package.
type GeneratorConfig struct { Writer io.Writer Fset *token.FileSet Pkg *types.Package AllPkg []*types.Package }
Path | Synopsis |
---|---|
benchmark | Package benchmark contains benchmarking bound functions for internal use. |
java | Package java implements the Java language bindings. |
objc | Package objc implements the Objective-C language bindings. |
seq | Package seq implements the machine-dependent seq serialization format. |
testpkg | Package testpkg contains bound functions for testing the cgo-JNI interface. |
testpkg/secondpkg | Package secondpkg is imported by bind tests that verify that a bound package can reference another bound package. |
testpkg/simplepkg | Package simplepkg is imported from testpkg and tests two corner cases. |
testpkg/unboundpkg | Package simplepkg is imported from testpkg and tests that references to other, unbound packages, are ignored. |
Package bind imports 13 packages (graph) and is imported by 2 packages. Updated 6 days ago. Refresh now. Tools for package owners.