Glossary: Go Beyond the Basics
pointer receiver
Also written: pointer receivers
A method declared on `*T` instead of `T`, so it works on the original value rather than a copy. Mutex-holding types need it, since a copied mutex guards nothing.
Glossary: Go Beyond the Basics
Also written: pointer receivers
A method declared on `*T` instead of `T`, so it works on the original value rather than a copy. Mutex-holding types need it, since a copied mutex guards nothing.