errors

package
v1.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package errors provides utility functions for manipulating errors.

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound = errors.New("Not found")
)

Functions

func IgnoreNotFound

func IgnoreNotFound(err error) error

IgnoreNotFound returns nil if err is a not found error, else err.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound checks if err is a not found error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL