- You need to pass
aandbtof():f(a, b) - Type of
example()isfunc(int, int)intnotfunc(int,int), when you declare the type of an argument, the return value has to fit as well - You are trying to return the result of a function that isn’t expected to return anything when Go expects you to return an
int.
3 Likes