We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "fmt" me "github.com/gojek-engineering/go-multierror" ) func main() { errs := me.NewMultiError() errs.Push("sample") go writeToErr(errs) go readFromErr(errs) if err := readFromErr(errs); err != nil { fmt.Println(err) } } func writeToErr(errs *me.MultiError) { errs.Push("new error") } func readFromErr(errs *me.MultiError) error { return errs.HasError() }
run this code with -race flag
-race
The text was updated successfully, but these errors were encountered:
No branches or pull requests
run this code with
-race
flagThe text was updated successfully, but these errors were encountered: