testpkg

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AString = "a string"
	AnInt   = 7
	ABool   = true
	AFloat  = 0.12345

	ALongString = "" /* 593-byte string literal not displayed */

	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    = &Node{V: "a struct var"}
	InterfaceVar I
)

Functions

func BytesAppend

func BytesAppend(a []byte, b []byte) []byte

func CallIError

func CallIError(i I, triggerError bool) error

func CallIStringError

func CallIStringError(i I, s string) (string, error)

func CallSSum

func CallSSum(s *S) float64

func CallWithNull

func CallWithNull(_null NullTest, nuller NullTest) bool

func CollectS

func CollectS(want, timeoutSec int) int

func Echo

func Echo(s string) string

func GC

func GC()

func Hello

func Hello(s string) string

func Hi

func Hi()

func Int

func Int(x int32)

func Multiply

func Multiply(idx int32, val int32) int64

func ReadIntoByteArray

func ReadIntoByteArray(s []byte) (int, error)

func RegisterI

func RegisterI(idx int32, i I)

func ReturnsError

func ReturnsError(b bool) (string, error)

func StringDup

func StringDup(s string) string

func Sum

func Sum(x, y int64) int64

func UnregisterI

func UnregisterI(idx int32)

Types

type I

type I interface {
	Times(v int32) int64
	Error(triggerError bool) error

	StringError(s string) (string, error)
}

func NewI

func NewI() I

func NewNullInterface

func NewNullInterface() I

type Node

type Node struct {
	V   string
	Err error
}

func NewNode

func NewNode(name string) *Node

type NullFieldStruct

type NullFieldStruct struct {
	F *S
}

Issue #13033

func NewNullFieldStruct

func NewNullFieldStruct() *NullFieldStruct

type NullTest

type NullTest interface {
	Null() NullTest
}

type S

type S struct {
	X, Y float64
	// contains filtered or unexported fields
}

func NewNullStruct

func NewNullStruct() *S

func NewS

func NewS(x, y float64) *S

func (*S) Sum

func (s *S) Sum() float64

func (*S) TryTwoStrings

func (s *S) TryTwoStrings(first, second string) string

type StructThatStartsWithLetterBeforeZ

type StructThatStartsWithLetterBeforeZ struct {
	Value Z
}

issue 13004

type Z

type Z interface {
}

Directories

Path Synopsis
Package gomobile_bind is an autogenerated binder stub for package testpkg.
Package gomobile_bind is an autogenerated binder stub for package testpkg.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳