gin

package module
v2.0.0-...-6198719 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler struct {
	// contains filtered or unexported fields
}

func NewErrorHandler

func NewErrorHandler(defaultLanguage string, logger *zap.SugaredLogger) *ErrorHandler

func (ErrorHandler) Handle

func (h ErrorHandler) Handle(c *gin.Context)

type Translatable

type Translatable interface {
	Translate(translator *message.Printer) string
	Error() string
}

Jump to

Keyboard shortcuts

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