Standard library / go/types

go/types.UnsafePointer

BasicKind for Pointer; indexes the Typ table. Aliases Byte and Rune share the Uint8 and Int32 indexes respectively. Expected stdout: 'Pointer\n'.

Formal Syntax & Structure

go syntaxgo
const UnsafePointer BasicKind

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/types")
func main() { fmt.Println(types.Typ[types.UnsafePointer].Name()) }
Go Reference