Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndEscapeName ¶
CheckAndEscapeName checks if the given name is a reserved keyword in any language and returns the escaped version of the name if it is.
func CheckIsReserved ¶ added in v0.38.0
CheckIsReserved checks if the given name is a reserved keyword in any language and logs a warning if it is
func EscapeKeyword ¶
EscapeKeyword returns the escaped version of the given word
func IsKeywordReservedInLang ¶
IsKeywordReservedInLang returns true if the word is a reserved keyword in the given language
Types ¶
type Lang ¶
type Lang string
Lang represents a programming language
func IsKeywordInLangs ¶ added in v0.38.0
func IsKeywordReserved ¶
IsKeywordReserved returns true if the word is a reserved keyword in any language and returns the list of languages in which the word is a reserved keyword
func (Lang) DisplayName ¶
DisplayName returns the display name of the language
Click to show internal directories.
Click to hide internal directories.