Pointer vs. value receiver

yourbasic.org/golang

Basic guidelines

Pointer receivers

You must use pointer receivers

You probably want to use pointer receivers

Value receivers

You probably want to use value receivers

You may want to use value receivers

Share this page: