joomcode / errorx

A comprehensive error handling library for Go
MIT License
1.12k stars 29 forks source link

Feature/immutability #9

Closed PeterIvanov closed 5 years ago

PeterIvanov commented 5 years ago

As it stands, error is not goroutiune-safe due to a couple of mutable fields. With this PR, a copying strategy is implemented. The overhead is expected to be low, as these modifications are rare in practice.