Files
zyedidia.micro/cmd/micro/help.go
Zachary Yedidia 5df28c76e8 Add tutorial.md to help files
Fixes #218
2016-08-29 21:26:53 -04:00

26 lines
468 B
Go

package main
var helpPages map[string]string
var helpFiles = []string{
"help",
"keybindings",
"plugins",
"colors",
"options",
"commands",
"tutorial",
}
// LoadHelp loads the help text from inside the binary
func LoadHelp() {
helpPages = make(map[string]string)
for _, file := range helpFiles {
data, err := Asset("runtime/help/" + file + ".md")
if err != nil {
TermMessage("Unable to load help text", file)
}
helpPages[file] = string(data)
}
}