Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestErrorSummary  = "Request Error"
	ClientErrorSummary   = "Client Error"
	InternalErrorSummary = "Internal Error"
)

Variables

This section is empty.

Functions

func BuildClientErrorMessage

func BuildClientErrorMessage(err error) string

func BuildInternalErrorMessage

func BuildInternalErrorMessage(err error) string

func BuildRequestErrorMessage

func BuildRequestErrorMessage(status string, body []byte) (string, error)

Types

type ErrorResponse

type ErrorResponse struct {
	Error *string `json:"error"`
}

Jump to

Keyboard shortcuts

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