Standard library / go/constant

go/constant.Kind

Enumerates constant categories, not static Go types such as int8. Expected stdout: 'Int\n'.

Formal Syntax & Structure

go syntaxgo
type Kind int

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/constant")
func main() { var k constant.Kind = constant.MakeInt64(42).Kind(); fmt.Println(k) }
Go Reference