go vet fixes

This commit is contained in:
bonedaddy 2020-12-24 17:31:40 -08:00
parent 8acf81f61d
commit 05b8e3065e
No known key found for this signature in database
GPG key ID: 5386234333106B29
6 changed files with 32 additions and 28 deletions

View file

@ -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,