TIL, thanks to this post, that Go testing uses a single private method in its interfaces, to prevent external code from implementing them, thus ensuring that future extensions won’t break other people’s code. Pretty neat in my opinion!
TIL, thanks to this post, that Go testing uses a single private method in its interfaces, to prevent external code from implementing them, thus ensuring that future extensions won’t break other people’s code. Pretty neat in my opinion!