Closed viniciusbds closed 4 years ago
If some of the methods of the type must have pointer receivers, the rest should too, so the method set is consistent regardless of how the type is used.
https://golang.org/doc/faq#methods_on_values_or_pointers
Thanks @viniciusbds <3
If some of the methods of the type must have pointer receivers, the rest should too, so the method set is consistent regardless of how the type is used.
https://golang.org/doc/faq#methods_on_values_or_pointers