Suppose that I have a type type T intand I want to define a logic to operate on this type.
What abstraction should I use and When ?
Defining a method on that type:
func (T t) someLogic() { // ... }Defining a function:
func somelogic(T t) { // ... }