lang

package
v0.0.0-...-3200512 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllLanguages

func AllLanguages() ([]core.Language, error)

func GetLanguage

func GetLanguage(languageCode string) (core.Language, error)

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

func ResolveLanguageFromPath(filePath string) (core.Language, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL