cmd

package
v16.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 6 Imported by: 0

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

func WriteTomlReadError(err error, outWriter io.Writer, errWriter io.Writer) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL