mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 15:46:59 -07:00
go vet fixes
This commit is contained in:
parent
8acf81f61d
commit
05b8e3065e
6 changed files with 32 additions and 28 deletions
|
@ -1,13 +1,14 @@
|
|||
package session
|
||||
|
||||
import (
|
||||
"github.com/bettercap/readline"
|
||||
"regexp"
|
||||
"sync"
|
||||
|
||||
"github.com/bettercap/readline"
|
||||
)
|
||||
|
||||
type CommandHandler struct {
|
||||
sync.Mutex
|
||||
*sync.Mutex
|
||||
Name string
|
||||
Description string
|
||||
Completer *readline.PrefixCompleter
|
||||
|
@ -17,6 +18,7 @@ type CommandHandler struct {
|
|||
|
||||
func NewCommandHandler(name string, expr string, desc string, exec func(args []string, s *Session) error) CommandHandler {
|
||||
return CommandHandler{
|
||||
Mutex: &sync.Mutex{},
|
||||
Name: name,
|
||||
Description: desc,
|
||||
Completer: nil,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue