Standard library / go/types
go/types.Int8
BasicKind for int8; indexes the Typ table. Aliases Byte and Rune share the Uint8 and Int32 indexes respectively. Expected stdout: 'int8\n'.
Formal Syntax & Structure
go syntaxgo
const Int8 BasicKindWorking Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { fmt.Println(types.Typ[types.Int8].Name()) }