Standard library / go/types

go/types.Float32

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

Formal Syntax & Structure

go syntaxgo
const Float32 BasicKind

Working Example

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