mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-08 04:52:15 +00:00
13 lines
204 B
Go
13 lines
204 B
Go
|
package proxy
|
||
|
|
||
|
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")
|
||
|
}
|