var counterErrorsHelpUnknownTopic … // Help implements the 'help' command. func Help(w io.Writer, args []string) { … } var usageTemplate … var helpTemplate … var documentationTemplate … type commentWriter … func (c *commentWriter) Write(p []byte) (int, error) { … } type errWriter … func (w *errWriter) Write(b []byte) (int, error) { … } // tmpl executes the given template text on data, writing the result to w. func tmpl(w io.Writer, text string, data any) { … } func capitalize(s string) string { … } func PrintUsage(w io.Writer, cmd *base.Command) { … }