Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAll ¶
ReadAll reads an ignore file from a reader and returns the list of file patterns to ignore, applying the following rules:
- An UTF8 BOM header (if present) is stripped.
- Lines starting with "#" are considered comments and are skipped.
For remaining lines:
- Leading and trailing whitespace is removed from each ignore pattern.
- It uses filepath.Clean to get the shortest/cleanest path for ignore patterns.
- Leading forward-slashes ("/") are removed from ignore patterns, so "/some/path" and "some/path" are considered equivalent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.