Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Classification ¶
Classification describes how a file should be treated by the indexer.
func Classify ¶
func Classify(path string, content string, cfg Config) Classification
Classify combines path-based and content-based classification. If the path indicates exclusion, content is not inspected.
func ClassifyContent ¶
func ClassifyContent(content string, cfg Config) Classification
ClassifyContent classifies a file based on the first ~512 bytes of its content.
func ClassifyPath ¶
func ClassifyPath(path string, cfg Config) Classification
ClassifyPath classifies a file based on its path alone.
Click to show internal directories.
Click to hide internal directories.