This question already has an answer here:
Just got a basic Go question regarding this code:
type Ips []string
func (a Ips) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
I believe (a Ips)
is a parameter of Swap function, but why could it be not inside parenthesis?
</div>