Documentation ¶
Overview ¶
Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx> SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateCommandHelp *template.Template
TemplateCommandHelp holds a template for rendering command help.
View Source
var TemplateFuncs = template.FuncMap{ "contains": strings.Contains, "hasSuffix": strings.HasSuffix, "hasPrefix": strings.HasPrefix, "replace": strings.ReplaceAll, "toUpper": strings.ToUpper, "toLower": strings.ToLower, "trim": strings.TrimSpace, "trimSuffix": strings.TrimSuffix, "trimPrefix": strings.TrimPrefix, "list": func(args ...any) []any { return args }, }
TemplateFuncs is a FuncMap with aliases to the strings package.
Functions ¶
func HelpTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.