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

@ -19,7 +19,7 @@ const (
)
type ModuleHandler struct {
sync.Mutex
*sync.Mutex
Name string
Description string
@ -30,6 +30,7 @@ type ModuleHandler struct {
func NewModuleHandler(name string, expr string, desc string, exec func(args []string) error) ModuleHandler {
h := ModuleHandler{
Mutex: &sync.Mutex{},
Name: name,
Description: desc,
Parser: nil,