Documentation
¶
Index ¶
Constants ¶
View Source
const ( StylePascalCase = "PascalCase" StyleCamelCase = "camelCase" StyleSnakeCase = "snake_case" StyleKebabCase = "kebab-case" )
naming styles
View Source
const (
CurrentCCLVersion = "v0.0.3"
)
View Source
const (
DefaultMainNamespace = "main"
)
namespaces constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguageType ¶
type LanguageType int
LanguageType represents a certain programming language (or, a certain format/data) that we support.
const ( LanguageUnknown LanguageType = iota LanguageCCL LanguageGo LanguageGd LanguageCS LanguagePy LanguageJS LanguageTS )
func GetLanguageTypeFromName ¶
func GetLanguageTypeFromName(name string) LanguageType
func (LanguageType) GetShortName ¶
func (l LanguageType) GetShortName() NormalizedLangName
GetShortName returns the short name of the current language type.
func (LanguageType) IsUnsupported ¶
func (l LanguageType) IsUnsupported() bool
func (LanguageType) String ¶
func (l LanguageType) String() string
String returns the string representation of this language type.
type NormalizedLangName ¶
type NormalizedLangName = string
NormalizedLangName represents a normalized language name that's supported by CCL tool.
func GetNormalizedLanguageName ¶
func GetNormalizedLanguageName(lang string) NormalizedLangName
Click to show internal directories.
Click to hide internal directories.