Standard library / reflect
reflect.Int
Kind constant identifying machine-sized signed integer. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Int Kind = 2Working Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { fmt.Println(reflect.TypeOf(int(0)).Kind() == reflect.Int) }