go-calc/calc/cli/init.go

19 lines
314 B
Go
Raw Normal View History

2024-02-21 10:42:56 +00:00
package cli
import (
_ "embed"
"strings"
)
//go:embed resources/help.txt
var embedHelp []byte
var help string
func init() {
help = string(embedHelp)
help = strings.ReplaceAll(help, "{T}", "\033[1;33m")
help = strings.ReplaceAll(help, "{0}", "\033[m")
help = strings.ReplaceAll(help, "{B}", "\033[33m")
}