How I can check that some variable in golang has type func, like this:
func
func A() {} func main() { variable := A isFunc := IsFunc(variable) // true or false }
func IsFunc(v any) bool { return reflect.TypeOf(v).Kind() == reflect.Func }