bind

package
v0.0.0-...-ba0a725 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

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(w io.Writer, fset *token.FileSet, pkg *types.Package) error

GenGo generates a Go stub to support foreign language APIs.

func GenJava

func GenJava(w io.Writer, fset *token.FileSet, pkg *types.Package, javaPkg string, ft fileType) error

GenJava generates a Java API from a Go package.

func GenObjc

func GenObjc(w io.Writer, fset *token.FileSet, pkg *types.Package, prefix string, ft fileType) error

GenObjc generates the Objective-C API from a Go package.

Types

type ErrorList

type ErrorList []error

func (ErrorList) Error

func (list ErrorList) Error() string

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.
testpkg
Package testpkg contains bound functions for testing the cgo-JNI interface.
Package testpkg contains bound functions for testing the cgo-JNI interface.
Package objc implements the Objective-C language bindings.
Package objc implements the Objective-C language bindings.
testpkg/go_testpkg
Package gomobile_bind is an autogenerated binder stub for package testpkg.
Package gomobile_bind is an autogenerated binder stub for package testpkg.
Package seq implements the machine-dependent seq serialization format.
Package seq implements the machine-dependent seq serialization format.

Jump to

Keyboard shortcuts

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