Skip to main content

Supported languages

Sunset detects languages from a filename extension, case-insensitively.

LanguageIDExtensions
Gogo.go
JavaScriptjavascript.js, .jsx
TypeScripttypescript.ts, .tsx
Pythonpython.py

Unsupported extensions are not included in directory scans. Parsing a single file with an unsupported extension returns an unsupported-language error unless the public Go API is given WithLanguage.