Documentation
¶
Overview ¶
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)
Index ¶
Constants ¶
View Source
const ( Java fileType = iota JavaC JavaH ObjcM ObjcH ObjcGoH )
Variables ¶
This section is empty.
Functions ¶
func GenGo ¶
func GenGo(conf *GeneratorConfig) error
GenGo generates a Go stub to support foreign language APIs.
func GenJava ¶
func GenJava(conf *GeneratorConfig, javaPkg string, ft fileType) error
GenJava generates a Java API from a Go package.
func GenObjc ¶
func GenObjc(conf *GeneratorConfig, prefix string, ft fileType) error
GenObjc generates the Objective-C API from a Go package.
Types ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package benchmark contains benchmarking bound functions for internal use.
|
Package benchmark contains benchmarking bound functions for internal use. |
Package java implements the Java language bindings.
|
Package java implements the Java language bindings. |
Package objc implements the Objective-C language bindings.
|
Package objc implements the Objective-C language bindings. |
Package seq implements the machine-dependent seq serialization format.
|
Package seq implements the machine-dependent seq serialization format. |
Package testpkg contains bound functions for testing the cgo-JNI interface.
|
Package testpkg contains bound functions for testing the cgo-JNI interface. |
secondpkg
Package secondpkg is imported by bind tests that verify that a bound package can reference another bound package.
|
Package secondpkg is imported by bind tests that verify that a bound package can reference another bound package. |
simplepkg
Package simplepkg is imported from testpkg and tests two corner cases.
|
Package simplepkg is imported from testpkg and tests two corner cases. |
unboundpkg
Package simplepkg is imported from testpkg and tests that references to other, unbound packages, are ignored.
|
Package simplepkg is imported from testpkg and tests that references to other, unbound packages, are ignored. |
Click to show internal directories.
Click to hide internal directories.