Use []*Command instead of []Command in CommandsByName

This commit is contained in:
Dan Buch
2017-08-04 13:23:06 -04:00
parent df5c6caa96
commit a372849da6
2 changed files with 16 additions and 17 deletions

View File

@@ -56,7 +56,7 @@ type Command struct {
CustomHelpTemplate string
}
type CommandsByName []Command
type CommandsByName []*Command
func (c CommandsByName) Len() int {
return len(c)