Because Go does not support overloading of user-defined functions on their argument types.
You can make functions with different names instead, or use methods if you want to “overload” on only one parameter (the receiver).
Because Go does not support overloading of user-defined functions on their argument types.
You can make functions with different names instead, or use methods if you want to “overload” on only one parameter (the receiver).