Use []*Command instead of []Command in CommandsByName
This commit is contained in:
@@ -56,7 +56,7 @@ type Command struct {
|
||||
CustomHelpTemplate string
|
||||
}
|
||||
|
||||
type CommandsByName []Command
|
||||
type CommandsByName []*Command
|
||||
|
||||
func (c CommandsByName) Len() int {
|
||||
return len(c)
|
||||
|
Reference in New Issue
Block a user