is_go113.go 297 B

123456789101112
  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. // +build go1.13
  5. package errors
  6. import "errors"
  7. // Is is errors.Is.
  8. func Is(err, target error) bool { return errors.Is(err, target) }