Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MainValidator = &CustomValidator{validator: validator.New()}
MainValidator .. CustomValidator Function
Functions ¶
This section is empty.
Types ¶
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
CustomValidator ... Validate the paste with validator v10
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
Validate ... function using CustomValidator
type LanguageRow ¶
LanguageRow ... Model for Language HTTP response
type PasteReqBody ¶
type PasteReqBody struct { Title string `json:"title" validate:"required"` Text string `json:"text" validate:"required"` ExpiresAt null.String `json:"expires_at,omitempty" validate:"omitempty"` Language string `json:"language" validate:"required"` }
PasteReqBody ... Model for the HTTP POST Request Body for Creating a Paste
Click to show internal directories.
Click to hide internal directories.