mobile: golang.org/x/mobile/bind Index | Files | Directories

package bind

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)

Index

Package Files

bind.go gen.go gengo.go genjava.go genobjc.go printer.go types.go

Constants

const (
    Java fileType = iota
    JavaC
    JavaH

    ObjcM
    ObjcH
    ObjcGoH
)

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.

type ErrorList

type ErrorList []error

func (ErrorList) Error

func (list ErrorList) Error() string

type GeneratorConfig

type GeneratorConfig struct {
    Writer io.Writer
    Fset   *token.FileSet
    Pkg    *types.Package
    AllPkg []*types.Package
}

Directories

PathSynopsis
benchmarkPackage benchmark contains benchmarking bound functions for internal use.
javaPackage java implements the Java language bindings.
objcPackage objc implements the Objective-C language bindings.
seqPackage seq implements the machine-dependent seq serialization format.
testpkgPackage testpkg contains bound functions for testing the cgo-JNI interface.
testpkg/secondpkgPackage secondpkg is imported by bind tests that verify that a bound package can reference another bound package.
testpkg/simplepkgPackage simplepkg is imported from testpkg and tests two corner cases.
testpkg/unboundpkgPackage 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.