Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(validator interface{ ValidateV2() error }, outWriter io.Writer, errWriter io.Writer) bool
Validate invokes validator and processes the result. If there are any errors returned by validator they will be written in JSON format into the outWriter. If there are any runtime errors they will be written into errWriter. It returns true if no errors occurred, otherwise it returns false.
func WriteTomlReadError ¶
WriteTomlReadError writes err into outWriter in case it is a deserialization error that can be caused by the wrong values used in the configuration file or invalid file format, returns true. Otherwise, err is written into the errWriter, and it returns false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.