Documentation
¶
Index ¶
- func BadRequest(format string, args ...any) error
- func Forbidden(format string, args ...any) error
- func Internal(format string, args ...any) error
- func New(format string, args ...any) error
- func NotFound(format string, args ...any) error
- func Unauthorized(format string, args ...any) error
- type Error
- type Validation
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func Unauthorized ¶
Types ¶
type Error ¶
type Error struct {
Status int
// contains filtered or unexported fields
}
Error represents an error with an HTTP status code.
type Validation ¶
Validation represents a result of a validation.
func (Validation) String ¶
func (v Validation) String() string
String returns the string representation of the validation
type Validator ¶
type Validator interface {
Validate(value any) ([]Validation, bool)
}
Validator represents a validator
Click to show internal directories.
Click to hide internal directories.