post_go20.go 283 B

12345678910111213141516
  1. //go:build go1.20
  2. package uri
  3. // TODO: build tag should be go1.20
  4. import "errors"
  5. func newErr(msg string) error {
  6. return errors.New(msg)
  7. }
  8. // errorsJoin is a temporary indirection to keep support for go1.19
  9. func errorsJoin(errs ...error) error {
  10. return errors.Join(errs...)
  11. }