status-go/geth/params/validator.go
Adam Babik 7433828a26 Validate JSON config (#240)
* exposed ValidateNodeConfig()
* extended NodeConfig interface with Validate() method
* added validate tag to some NodeConfig fields
2017-08-10 22:31:29 +07:00

11 lines
185 B
Go

package params
import (
"gopkg.in/go-playground/validator.v9"
)
// NewValidator returns a new validator.Validate.
func NewValidator() *validator.Validate {
return validator.New()
}