Practice
Learn
← Quit
0 / 0 correct
Go
Easy
1 of 50
When should a method use a pointer receiver (func (s *S) M()) instead of a value receiver?
A
When it must modify the receiver or the struct is large to copy
B
Never; value receivers are always faster
C
Only when S contains a slice
D
Only for interface methods