Standard library / reflect
reflect.Kind
Broad category of a type or value; defined types can share a kind while having different identities. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type Kind uintWorking Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { type Count int; fmt.Println(reflect.TypeOf(Count(0)).Kind() == reflect.Int) }