1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 11:46:16 +00:00
mycorrhiza/help/help.go
Timur Ismagilov 53ae1a6e7a Add the help system
No documentation yet. This branch will eventually be merged into master
2021-07-11 01:02:16 +05:00

16 lines
362 B
Go

// Package help contains help messages and the utilities for retrieving them.
package help
import (
"embed"
)
//go:embed en
var fs embed.FS
// Get determines what help text you need and returns it. The path is a substring from URL, it follows this form:
// <language>/<topic>
func Get(path string) ([]byte, error) {
return fs.ReadFile(path + ".myco")
}