mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 18:42:14 +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")
|
|
}
|