19 lines
416 B

// Package help contains help messages and the utilities for retrieving them.
package help
import (
//go:embed en en.myco *.html
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")