test1

package
v0.0.0-...-ac42faf Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 3

Documentation

Overview

Package test1 is a test package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltinAppend

func BuiltinAppend(x []byte) []byte

BuiltinAppend calls append on a slice. +mustescape:local,builtin

func BuiltinChan

func BuiltinChan() chan int

BuiltinChan makes a channel. +mustescape:local,builtin

func BuiltinClosure

func BuiltinClosure(x int) func()

BuiltinClosure returns a closure around x. +mustescape:local,builtin

func BuiltinMakeSlice

func BuiltinMakeSlice(x int) []byte

BuiltinMakeSlice makes a new slice. +mustescape:local,builtin

func BuiltinMap

func BuiltinMap(x int) map[string]bool

BuiltinMap creates a new map. +mustescape:local,builtin

func Dispatch

func Dispatch(i Interface)

Dispatch dispatches via an interface. +mustescape:local,interface

func Dynamic

func Dynamic(f func())

Dynamic invokes a dynamic function. +mustescape:local,dynamic

func InterfaceFunction

func InterfaceFunction(i Interface)

InterfaceFunction is passed an interface argument. +checkescape:all,hard

func Split

func Split()

Split includes a guaranteed stack split. +mustescape:local,stack

func TypeFunction

func TypeFunction(t *Type)

TypeFunction is passed a concrete pointer argument. +checkesacape:all,hard

Types

type Interface

type Interface interface {
	Foo()
}

Interface is a generic interface.

type Type

type Type struct {
	A uint64
	B uint64
}

Type is a concrete implementation of Interface.

func Heap

func Heap() *Type

Heap performs an explicit heap allocation. +mustescape:local,heap

func (Type) Foo

func (t Type) Foo()

Foo implements Interface.Foo.

Jump to

Keyboard shortcuts

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