response

package
v0.0.0-...-cb931d6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StatusOK    = "OK"
	StatusError = "Error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Status string `json:"status"`
	Error  string `json:"error,omitempty"`
}

func Error

func Error(msg string) Response

func OK

func OK() Response

func ValidationError

func ValidationError(errs validator.ValidationErrors) Response

Jump to

Keyboard shortcuts

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