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