errutil

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DuplicateError

func DuplicateError(err error, size int) []error

DuplicateError creates a slice of the same error repeated size times. This is useful for dataloader methods that need to return one error per requested ID.

func IgnoreNotFound

func IgnoreNotFound(err error) error

IgnoreNotFound returns nil if err is pgx.ErrNoRows, otherwise returns err. This is useful for queries where "not found" should be treated as a non-error case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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