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