utils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseContainsStatusMessage

func ResponseContainsStatusMessage(err error, statusMessage string) bool

ResponseContainsStatusMessage is used for check if error message contains specific message

func ResponseWasNotFound

func ResponseWasNotFound(err error) bool

ResponseWasNotFound was used for check if error is due to resource not found

func ResponseWasStatusCode

func ResponseWasStatusCode(err error, statusCode int) bool

ResponseWasStatusCode was used for check if error status code was specific http status code

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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