-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels