Back to / internal / unsafe

Package unsafe

Latest Go to latest

The latest major version is .

Published: 5 days ago | Licenses: MIT , Unlicense | Module:


func BytesView

func BytesView(s interface{}) []byte

BytesView returns a byte slice view of a slice.

func GoString

func GoString(s []byte) string

GoString convert a NUL-terminated C string to a Go string.

func SliceOf

func SliceOf(s uintptr) []byte

SliceOf returns a slice from a (native) pointer.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier