Standard library / reflect
reflect.Bool
Kind constant identifying boolean. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Bool Kind = 1Working Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { fmt.Println(reflect.TypeOf(false).Kind() == reflect.Bool) }