I just want to define a function type which will match all functions and I have tried this:
type funcType func(...interface{}) ...interface{} but failed
How can I do this?
I just want to define a function type which will match all functions and I have tried this:
type funcType func(...interface{}) ...interface{} but failed
How can I do this?
There is no function type that's compatible with any function.
The best you can do is interface{}
to which any value is assignable to, including functions.