Methods
Go has no classes — but it does have methods.
A method is just a function with a special receiver argument. The receiver sits between the func keyword and the method name, binding the function to a specific type.
In this example, Abs has a receiver of type Vertex named v. That’s what makes it a method instead of a plain function.
Try it: run the code and see Abs() called on v like v.Abs().