Go: Pointer vs. value receiver

Basics

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

Comments

Be the first to comment!