mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-11-07 19:13:01 +00:00
Move the main help page
It was on /help/en/index, now it is on both /help/en and /help
This commit is contained in:
@@ -5,11 +5,14 @@ import (
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed en
|
||||
//go:embed en en.myco
|
||||
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) {
|
||||
if path == "" {
|
||||
return Get("en")
|
||||
}
|
||||
return fs.ReadFile(path + ".myco")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user