Standard library / reflect

reflect.Func

Kind constant identifying function. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const Func Kind = 19

Working Example

Example Snippetgo
package main
import (  "fmt"  "reflect")
func main() { fmt.Println(reflect.TypeOf(func() {}).Kind() == reflect.Func) }
Go Reference