util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(err error, substr string) bool

Contains returns a boolean indicating whether the given error contained the given substring.

NOTE: A <nil> error will always return false.

func Unwrap

func Unwrap(err error) error

Unwrap completely unwraps an error, returning the source/root error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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