testpkg

package
v0.0.0-...-fd97e0e Latest Latest
Warning

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

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

Documentation

Index

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    = &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 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 RegisterI

func RegisterI(idx int32, i I)

func ReturnsError

func ReturnsError(b bool) (string, error)

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

type Node

type Node struct {
	V   string
	Err error
}

func NewNode

func NewNode(name string) *Node

type S

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

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 go_testpkg is an autogenerated binder stub for package testpkg.
Package go_testpkg 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