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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With