Documentation ¶
Index ¶
- func GetInput(body io.Reader, to interface{}, v *validator.Validate) error
- func IsPhoneNumber(fl validator.FieldLevel) bool
- func IsRegexp(fl validator.FieldLevel) bool
- func IsTimeRFC3339(fl validator.FieldLevel) bool
- func IsTimeUnixMicro(fl validator.FieldLevel) bool
- func Logger(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func NewValidate() *validator.Validate
- func UnixMicroStringToTime(s string) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPhoneNumber ¶
func IsPhoneNumber(fl validator.FieldLevel) bool
func IsTimeRFC3339 ¶
func IsTimeRFC3339(fl validator.FieldLevel) bool
func IsTimeUnixMicro ¶
func IsTimeUnixMicro(fl validator.FieldLevel) bool
func Logger ¶
func Logger(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Logger middleware handles the HTTP log.
func NewValidate ¶
func NewValidate() *validator.Validate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.