mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-14 02:15:51 +01:00
14 lines
284 B
Go
14 lines
284 B
Go
package lib
|
|
|
|
import "github.com/go-playground/validator/v10"
|
|
|
|
// CustomValidator : Custom Validator
|
|
type CustomValidator struct {
|
|
Validator *validator.Validate
|
|
}
|
|
|
|
// Validate : Validate Data
|
|
func (cv *CustomValidator) Validate(i interface{}) error {
|
|
return cv.Validator.Struct(i)
|
|
}
|