Documentation
¶
Index ¶
- Variables
- func AllocU(size uintptr) unsafe.Pointer
- func AllocZ(size uintptr) unsafe.Pointer
- func CStrCopy(dest unsafe.Pointer, s String) *int8
- func CStrDup(s String) *int8
- func CheckI2Float32(v Interface, t *Type) (float32, bool)
- func CheckI2Float64(v Interface, t *Type) (float64, bool)
- func CheckI2Int(v Interface, t *Type) (uintptr, bool)
- func I2Float32(v Interface, t *Type) float32
- func I2Float64(v Interface, t *Type) float64
- func I2Int(v Interface, t *Type) uintptr
- func SliceCap(s Slice) int
- func SliceData(s Slice) unsafe.Pointer
- func SliceLen(s Slice) int
- func StringData(s String) unsafe.Pointer
- func StringLen(s String) int
- func TracePanic(v Interface)
- func Zeroinit(p c.Pointer, size uintptr) c.Pointer
- type Interface
- type InterfaceType
- type Kind
- type Map
- type Slice
- type String
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TyAny = &InterfaceType{}
)
Functions ¶
func StringData ¶ added in v0.4.0
StringData returns the data pointer of a string.
Types ¶
type Interface ¶
type Interface = iface
func MakeAnyInt ¶
func MakeAnyString ¶
func MakeInterface ¶
func MakeInterface(inter *InterfaceType, typ *Type, data unsafe.Pointer) Interface
type InterfaceType ¶
type InterfaceType = abi.InterfaceType
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.