Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLintFailure error is returned when there is a linting error ErrLintFailure = errors.New("lint error") // ErrInternalFailure error is returned when there is a parsing, internal, or runtime error. ErrInternalFailure = errors.New("parsing, internal or runtime errors") )
Functions ¶
func Lint ¶
Lint is used to lint Protocol Buffer files with the protolint tool. It takes an array of strings (args) representing command line arguments, as well as two io.Writer instances (stdout and stderr) to which the output of the command should be written. It returns an error in the case of a linting error (ErrLintFailure) or a parsing, internal, or runtime error (ErrInternalFailure). Otherwise, it returns nil on success.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.