This matches the convention of the stdlib and avoids ambiguity: when customErr{} and &customErr{} both implement error, client code needs to check for both. Memory use should remain the same, since storing a non-pointer type in an interface value still copies the value to the heap. |
||
---|---|---|
.. | ||
cache_test.go | ||
cache.go | ||
debug.go | ||
discover.go | ||
doc.go | ||
global_test.go | ||
global.go | ||
local_test.go | ||
local.go | ||
local.pb.go | ||
local.proto |