Documentation
¶
Index ¶
- func AllLanguages() ([]core.Language, error)
- func GetLanguage(languageCode string) (core.Language, error)
- func NewGoLanguage() (*goLanguage, error)
- func NewJavaLanguage() (*javaLanguage, error)
- func NewJavascriptLanguage() (*javascriptLanguage, error)
- func NewPythonLanguage() (*pythonLanguage, error)
- func NewTypescriptLanguage() (*typescriptLanguage, error)
- func ResolveLanguageFromPath(filePath string) (core.Language, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllLanguages ¶
func GetLanguage ¶
GetLanguage returns the core.Language implementation for the given language code
func NewGoLanguage ¶
func NewGoLanguage() (*goLanguage, error)
func NewJavaLanguage ¶
func NewJavaLanguage() (*javaLanguage, error)
func NewJavascriptLanguage ¶
func NewJavascriptLanguage() (*javascriptLanguage, error)
func NewPythonLanguage ¶
func NewPythonLanguage() (*pythonLanguage, error)
func NewTypescriptLanguage ¶
func NewTypescriptLanguage() (*typescriptLanguage, error)
func ResolveLanguageFromPath ¶
ResolveLanguageFromPath resolves the programming language from the filePath and returns the core.Language and a boolean indicating if the language implementation exists for the specified file extension in filePath.
It returns nil, false if the file extension is not supported by any implemented language.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.