Chore: Fix up various linting issues

In prep to add golangci-lint, fix various linting issues.
* Make the `kvm` package a fully-qualified public package.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ
2024-12-31 15:23:33 +01:00
parent 4884240f5f
commit d3641bb4b9
9 changed files with 17 additions and 13 deletions

View File

@@ -13,6 +13,8 @@ import (
"syscall"
"time"
"github.com/jetkvm/kvm/resource"
"github.com/pion/webrtc/v4/pkg/media"
)
@@ -90,8 +92,8 @@ func WriteCtrlMessage(message []byte) error {
return err
}
var nativeCtrlSocketListener net.Listener
var nativeVideoSocketListener net.Listener
var nativeCtrlSocketListener net.Listener //nolint:unused
var nativeVideoSocketListener net.Listener //nolint:unused
var ctrlClientConnected = make(chan struct{})