Standard library / go/types

go/types.Uint8

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

Formal Syntax & Structure

go syntaxgo
const Uint8 BasicKind

Working Example

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