import "golang.org/x/mobile/bind/testpkg"
Package testpkg contains bound functions for testing the cgo-JNI interface. This is used in tests of golang.org/x/mobile/bind/java.
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 )
var ( StringVar = "a string var" IntVar = 77 StructVar = &S{name: "a struct var"} InterfaceVar I InterfaceVar2 I2 NodeVar = &Node{V: "a struct var"} )
var ( ImportedVarI secondpkg.I = NewImportedI() ImportedVarS *secondpkg.S = NewImportedS() )
func CallCDupper(d ConcreteDupper) bool
func CallIDupper(d InterfaceDupper) bool
func CallWithCallback(gcb GoCallback)
func GC()
func GarbageCollect()
func Hi()
func UnboundI(_ unboundpkg.I)
func UnboundS(_ *unboundpkg.S)
type AnSer struct{}
type Concrete struct{}
type GoCallback interface {
VarUpdate()
}
type I interface { F() E() error V() int VE() (int, error) I() I S() *S StoString(seq *S) string String() string }
type I2 interface { Times(v int32) int64 Error(triggerError bool) error StringError(s string) (string, error) }
func NewImportedFields() *ImportedFields
type Interface interface {
F()
}
Issue #13033
func NewNullFieldStruct() *NullFieldStruct
type Nummer interface {
Num()
}
type S struct {
// contains filtered or unexported fields
}
Path | Synopsis |
---|---|
secondpkg | 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. |
unboundpkg | Package simplepkg is imported from testpkg and tests that references to other, unbound packages, are ignored. |
Package testpkg imports 11 packages (graph). Updated 6 days ago. Refresh now. Tools for package owners.