errutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[T any](value T, err error) T

Must is a utility function that takes a value and an error as parameters and returns the value if the error is nil. This function is useful for cases where the program cannot proceed if an error occurs. Note: This function will terminate the program if the error is not nil. Use with caution.

func ProcessErrorResponse

func ProcessErrorResponse(w io.Writer, err error)

ProcessErrorResponse extracts the Payload from an ErrorResponse.

Types

This section is empty.

Jump to

Keyboard shortcuts

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