core
core copied to clipboard
Set of core packages every Go project needs. Minimal API, strictly versioned and with ~no dependencies.
I made [a spiritual successor of `github.com/pkg/errors`](https://gitlab.com/tozd/go/errors) some time ago and in it I want to know if an error already contains a stack trace. The goal is that if...
Now that Go 1.20 supports multi-error handling, it's probably time to deprecate and remove the `merrors` package. Similar, `pkg/errors` has been archived and this should probably be deprecated in favor...
This is directly inspired by @fpetkovski's work in https://github.com/thanos-io/thanos/pull/5420#discussion_r897531384. This PR adds a thread-safe implementation of the `NilOrMultiError` called `NilOrMultiSyncError`. PR provides tests as well. Another small fix in this...
``` github.com/efficientgo/core/errors # github.com/efficientgo/core/errors_test # [github.com/efficientgo/core/errors_test] ./errors_test.go:100:35: non-constant format string in call to github.com/efficientgo/core/errors.Wrapf FAIL github.com/efficientgo/core/errors [build failed] ``` This is in the test verifying it does not generate an...