Documentation ¶ Index ¶ func Build[E any](ptr unsafe.Pointer, len, cap int) (s []E) func Convert[EI, EO any](s []EI, len, cap int) (os []EO) func String(bs []byte) string type Slice func Struct[E any](s []E) Slice[E] func StructP[E any](sp *[]E) *Slice[E] func (s Slice[E]) Slice() (es []E) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Build ¶ func Build[E any](ptr unsafe.Pointer, len, cap int) (s []E) func Convert ¶ func Convert[EI, EO any](s []EI, len, cap int) (os []EO) func String ¶ func String(bs []byte) string Types ¶ type Slice ¶ type Slice[E any] struct { Ptr unsafe.Pointer Len int Cap int } func Struct ¶ func Struct[E any](s []E) Slice[E] func StructP ¶ func StructP[E any](sp *[]E) *Slice[E] func (Slice[E]) Slice ¶ func (s Slice[E]) Slice() (es []E) Source Files ¶ View all Source files unsafe.go Click to show internal directories. Click to hide internal directories.