package
Version:
v0.0.0-...-cf0febb
Opens a new window with list of versions in this module.
Published: Oct 1, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ToJSON(v interface{}) []byte
type Error struct {
HTTPCode int `mapstructure:"code" json:"-"`
Message string `mapstructure:"message" json:"message,omitempty"`
Detail interface{} `mapstructure:"detail,omitempty" swaggerignore:"true" json:"detail,omitempty"`
}
func NewError(httpCode int, message string, detail interface{}) *Error
type Validator interface {
Validate(i interface{}) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.