Closed faabiosr closed 3 years ago
Sentinel error value should behave as a constant, that is it should be immutable, and also block the error variable so that it is not overwritten.
great
I appreciate the suggestion but I like the var ... = error.New pattern better. Thanks.
var ... = error.New
Sentinel error value should behave as a constant, that is it should be immutable, and also block the error variable so that it is not overwritten.