You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
315 B

  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) }