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