Documentation
¶
Index ¶
- func AllocU(size uintptr) unsafe.Pointer
- func AllocZ(size uintptr) unsafe.Pointer
- func AssertIndexRange(b bool)
- func AssertNegativeShift(b bool)
- func AssertRuntimeError(b bool, msg string)
- func CStrCopy(dest unsafe.Pointer, s String) *int8
- func CStrDup(s String) *int8
- func InitNamed(ret *Type, pkgPath, name string, underlying *Type, ...)
- func PrintBool(v bool)
- func PrintByte(v byte)
- func PrintEface(e Eface)
- func PrintFloat(v float64)
- func PrintHex(v uint64)
- func PrintIface(i Iface)
- func PrintInt(v int64)
- func PrintPointer(p unsafe.Pointer)
- func PrintSlice(s Slice)
- func PrintString(s String)
- func PrintUint(v uint64)
- func SliceCopy(dst Slice, data unsafe.Pointer, num int, etSize int) int
- func StringEqual(x, y String) bool
- func StringIterNext(it *StringIter) (ok bool, k int, v rune)
- func StringLess(x, y String) bool
- func StringToBytes(s String) []byte
- func StringToRunes(s string) []rune
- func StructField(name string, typ *Type, off uintptr, tag string, embedded bool) abi.StructField
- func TracePanic(v Eface)
- func Zeroinit(p c.Pointer, size uintptr) c.Pointer
- type Eface
- type FuncType
- type Iface
- type Imethod
- type InterfaceType
- type Itab
- type Kind
- type Map
- type Method
- type Slice
- type String
- type StringIter
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertIndexRange ¶ added in v0.8.3
func AssertIndexRange(b bool)
func AssertNegativeShift ¶ added in v0.8.3
func AssertNegativeShift(b bool)
func AssertRuntimeError ¶ added in v0.8.3
func PrintEface ¶ added in v0.8.5
func PrintEface(e Eface)
func PrintFloat ¶ added in v0.8.3
func PrintFloat(v float64)
func PrintIface ¶ added in v0.8.3
func PrintIface(i Iface)
func PrintPointer ¶ added in v0.8.3
func PrintSlice ¶ added in v0.8.3
func PrintSlice(s Slice)
func PrintString ¶ added in v0.8.3
func PrintString(s String)
func StringEqual ¶ added in v0.8.5
func StringIterNext ¶ added in v0.8.5
func StringIterNext(it *StringIter) (ok bool, k int, v rune)
func StringLess ¶ added in v0.8.5
func StringToBytes ¶ added in v0.8.5
func StringToRunes ¶ added in v0.8.5
func StructField ¶ added in v0.8.5
StructField returns a struct field.
Types ¶
type InterfaceType ¶
type InterfaceType = abi.InterfaceType
func Interface ¶
func Interface(pkgPath, name string, methods []Imethod) *InterfaceType
Interface returns an interface type. Don't call NewNamed for named interface type.
type Itab ¶ added in v0.8.5
type Itab = itab
func NewItab ¶ added in v0.8.5
func NewItab(inter *InterfaceType, typ *Type) *Itab
NewItab returns a new itab.
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slice is the runtime representation of a slice.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is the runtime representation of a string. It cannot be used safely or portably and its representation may change in a later release.
Unlike reflect.StringHeader, its Data field is sufficient to guarantee the data it references will not be garbage collected.
func NewStringSlice ¶ added in v0.5.0
func StringFromBytes ¶ added in v0.8.5
func StringFromRune ¶ added in v0.8.5
func StringFromRunes ¶ added in v0.8.5
type StringIter ¶ added in v0.8.5
type StringIter struct {
// contains filtered or unexported fields
}
func NewStringIter ¶ added in v0.8.5
func NewStringIter(s string) *StringIter
type Type ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.