Standard library / go/constant
go/constant.Int
Integer constant category; compare Value.Kind with this constant. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Int KindWorking Example
Example Snippetgo
package main
import ( "fmt" "go/constant")
func main() { fmt.Println(constant.MakeInt64(42).Kind() == constant.Int) }