3 ms·
Package errors is indeed a part of the standard library.
by sagichmal 7y ago
Package errors is indeed a part of the standard library.
- tsimionescu 7y agoYes, they were wrong about that. But they were right about it losing error context. Basically errorf can only help you bubble up the lowest level error in a machine readable way. You have to write your own error type if you want to let code handle the higher level errors.