Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
Detect detects the language of a specific file. If guessLanguage is true, Chroma will be used to detect a language from the file contents.
func WithDetection ¶
func WithDetection(config Config) heartbeat.HandleOption
WithDetection initializes and returns a heartbeat handle option, which can be used in a heartbeat processing pipeline to detect and add programming language info to heartbeats of entity type 'file'.
Types ¶
Click to show internal directories.
Click to hide internal directories.