Documentation ¶
Overview ¶
Package testpkg contains bound functions for testing the cgo-JNI interface. This is used in tests of golang.org/x/mobile/bind/java.
Index ¶
- Constants
- Variables
- func Add(x, y int) int
- func AppendToString(str string, someBytes []byte) []byte
- func BytesAppend(a []byte, b []byte) []byte
- func CallE(i I) error
- func CallF(i I)
- func CallV(i I) int
- func CallVE(i I) (int, error)
- func Err(s string) error
- func GC()
- func GarbageCollect()
- func Hello(r Receiver, name string)
- func Keep(i I)
- func Negate(x bool) bool
- func NumSCollected() int
- func ReadAsset() string
- func StrDup(s string) string
- func UnnamedParams(_, _ int, p0 string) int
- type I
- type Node
- type Receiver
- type S
Constants ¶
View Source
const ( AString = "a string" AnInt = 7 ABool = true AFloat = 0.12345 MinInt32 int32 = math.MinInt32 MaxInt32 int32 = math.MaxInt32 MinInt64 = math.MinInt64 MaxInt64 = math.MaxInt64 SmallestNonzeroFloat64 = math.SmallestNonzeroFloat64 MaxFloat64 = math.MaxFloat64 SmallestNonzeroFloat32 float32 = math.SmallestNonzeroFloat64 MaxFloat32 float32 = math.MaxFloat32 Log2E = math.Log2E )
Variables ¶
View Source
var ( StringVar = "a string var" IntVar = 77 StructVar = &S{name: "a struct var"} InterfaceVar I )
Functions ¶
func AppendToString ¶
func BytesAppend ¶
func GarbageCollect ¶
func GarbageCollect()
func NumSCollected ¶
func NumSCollected() int
func UnnamedParams ¶
Types ¶
type I ¶
Directories ¶
Path | Synopsis |
---|---|
Package go_testpkg is an autogenerated binder stub for package testpkg.
|
Package go_testpkg is an autogenerated binder stub for package testpkg. |
Click to show internal directories.
Click to hide internal directories.