is_go113.go 315 B

12345678910111213
  1. // Copyright 2020 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build go1.13
  5. // +build go1.13
  6. package errors
  7. import "errors"
  8. // Is is errors.Is.
  9. func Is(err, target error) bool { return errors.Is(err, target) }