mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-06 12:02:13 +00:00
13 lines
205 B
Go
13 lines
205 B
Go
package server
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
"gopkg.in/go-playground/validator.v9"
|
|
)
|
|
|
|
var v = validator.New()
|
|
|
|
func validate(req interface{}) error {
|
|
return errors.Wrap(v.Struct(req), "Validate")
|
|
}
|