busybar / cmd / api / helpers.go
helpers.go
Raw
package main

import "github.com/go-playground/validator"

type CustomValidator struct {
	Validator *validator.Validate
}

func (cv *CustomValidator) Validate(i interface{}) error {
	return cv.Validator.Struct(i)
}