chezmoierrors

package
v2.54.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package chezmoierrors contains convenience functions for combining multiple errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(errs ...error) error

Combine combines all non-nil errors in errs into one. If there are no non-nil errors, it returns nil. If there is exactly one non-nil error then it returns that error. Otherwise, it returns the non-nil errors combined with errors.Join.

func CombineFunc

func CombineFunc(errp *error, f func() error)

CombineFunc combines the error pointed to by errp with the result of calling f.

Types

This section is empty.

Jump to

Keyboard shortcuts

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