Opens a new window with list of versions in this module.
Published: Jan 29, 2019
Opens a new window with license information.
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Process(r, w, path, maxLength, tabWidth, exclude)
ProcessFile(w, path, maxLength, tabWidth, exclude)
ShouldSkip(path, isDir, skipList, goOnly)
Package lll provides validation functions regarding line length
func Process(r io.Reader, w io.Writer, path string, maxLength, tabWidth int, ...) error
func ProcessFile(w io.Writer, path string, maxLength, tabWidth int, exclude *regexp.Regexp) error
func ShouldSkip(path string, isDir bool, skipList string, goOnly bool) (bool, error)
Process checks all lines in the reader and writes an error if the line length
is greater than MaxLength.
ProcessFile checks all lines in the file and writes an error if the line
length is greater than MaxLength.
ShouldSkip checks the input and determines if the path should be skipped.
Use the SkipList to quickly skip paths.
All directories are skipped, only files are processed.
If GoOnly is supplied check that the file is a go file.
Otherwise check so the file is a "text file".
Click to show internal directories.
Click to hide internal directories.