response

package
v0.0.0-...-ce4d510 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusSuccess = "success"
	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 Fail

func Fail(message string) Response

func Success

func Success() 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