bind

package
v0.0.0-...-8b1022e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0, 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(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

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

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.

Jump to

Keyboard shortcuts

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