GoLanguage
classin packageklyn.code.go
public class GoLanguage extends Object
└ GoLanguage

Canonical LanguageProfile factory and vocabulary definitions for Go (.go).

Includes all Go keywords, predeclared types (including Go 1.18+ any and comparable), predeclared constants (true, false, nil, iota), and built-in functions (make, new, len, cap, append, copy, delete, clear, min, max, panic, recover).

Example
import klyn.code.go

profile = GoLanguage.profile()
assert profile.id == "go"
assert profile.isKeyword("defer")
assert profile.isType("uintptr")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public static profile
profile() as LanguageProfile
Returns the shared singleton LanguageProfile for Go.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml