package list import ( "fmt" "gitoa.ru/go-4devs/console/setting" ) const tpl = `The %[2]s command lists all commands: %[1]s %[2]s You can also display the commands for a specific namespace: %[1]s %[2]s test You can also output the information in other formats by using the --format option: %[1]s %[2]s --format=xml` func Help(data setting.HData) (string, error) { return fmt.Sprintf(tpl, data.Bin, data.Name), nil }