Documentation
¶
Overview ¶
Package prelude lists the names the prelude binds in every module (sections 10 and 11).
Index ¶
Constants ¶
const Path = "prelude.d.ant"
Path is the prelude's file name, a declaration file (section 10, Declaration files): the path its declarations carry and the document an editor opens for one, ant:/prelude.d.ant.
Variables ¶
var Layout = sync.OnceValue(func() *parser.Layout { _, l, _ := parser.ParseLayout(Path, source) return l })
Layout returns the prelude's layout, for an editor that shows its document, made once.
var Names = []string{
"print", "println", "eprint", "eprintln", "panic", "assert", "len",
"int8", "int16", "int32", "int64", "uint8", "uint16", "uint32", "uint64",
"float32", "float64", "int", "byte", "string", "bool",
"never", "Integer", "Number", "Ordered", "Seq", "Entry", "Indexed",
"Error", "Panic", "Ok", "Err", "Result",
"Array", "Map", "Set", "String", "Regex", "Iter", "Math", "Bits", "Random", "Record",
"Bytes", "Html", "Mutex", "RwMutex", "WaitGroup", "Once", "Cond", "Atomic", "Context", "Channel",
"Parallel", "Reflect",
"File", "Http", "Net", "Path", "Time", "Os", "Cmd", "Json", "Csv", "Encoding", "Url", "Crypto",
"Test",
}
Names are the prelude's bindings: the functions, the conversion names, the types, and the namespaces. No declaration in any scope may shadow one (section 10).
Functions ¶
func NamespaceDoc ¶
NamespaceDoc returns the namespace name, matched without regard to case, as the prelude spells it, with its doc, or "", "" when it has none. A namespace's doc is the paragraph under its section label in the prelude, a run of comments of its own between blank lines: "// Array", an empty "//", and the text.
Types ¶
This section is empty.