Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(info LanguageInfo)
Register stores language metadata for extension lookups. Subsequent registrations for the same language overwrite prior data to keep the catalog in sync with the latest provider definition.
Types ¶
type LanguageInfo ¶
LanguageInfo captures metadata about a language provider.
func Languages ¶
func Languages() []LanguageInfo
Languages returns all registered language infos sorted by language ID.
func LookupByExtension ¶
func LookupByExtension(ext string) (LanguageInfo, bool)
LookupByExtension returns the language info associated with a file extension.
Click to show internal directories.
Click to hide internal directories.