diff --git a/internal/api/static.go b/internal/api/static.go index 9d9335ea..8de40073 100644 --- a/internal/api/static.go +++ b/internal/api/static.go @@ -1,8 +1,9 @@ package api import ( - "github.com/AlexxIT/go2rtc/www" "net/http" + + "github.com/AlexxIT/go2rtc/www" ) func initStatic(staticDir string) { diff --git a/internal/webtorrent/tracker.go b/internal/webtorrent/tracker.go index 4e5bd9b3..e504d80c 100644 --- a/internal/webtorrent/tracker.go +++ b/internal/webtorrent/tracker.go @@ -2,9 +2,10 @@ package webtorrent import ( "fmt" + "net/http" + "github.com/AlexxIT/go2rtc/pkg/webtorrent" "github.com/gorilla/websocket" - "net/http" ) var upgrader *websocket.Upgrader diff --git a/main.go b/main.go index db3983cc..5708f973 100644 --- a/main.go +++ b/main.go @@ -81,7 +81,7 @@ func main() { mpegts.Init() // mpegts passive source roborock.Init() // roborock source homekit.Init() // homekit source - ring.Init() // ring source + ring.Init() // ring source nest.Init() // nest source bubble.Init() // bubble source expr.Init() // expr source diff --git a/pkg/h265/helper.go b/pkg/h265/helper.go index 44605bde..c2ad94da 100644 --- a/pkg/h265/helper.go +++ b/pkg/h265/helper.go @@ -3,6 +3,7 @@ package h265 import ( "encoding/base64" "encoding/binary" + "github.com/AlexxIT/go2rtc/pkg/core" ) diff --git a/pkg/h265/payloader.go b/pkg/h265/payloader.go index 52ea2e4c..e4884118 100644 --- a/pkg/h265/payloader.go +++ b/pkg/h265/payloader.go @@ -2,8 +2,9 @@ package h265 import ( "encoding/binary" - "github.com/AlexxIT/go2rtc/pkg/h264" "math" + + "github.com/AlexxIT/go2rtc/pkg/h264" ) // diff --git a/pkg/hass/api.go b/pkg/hass/api.go index 6d5a9204..1dcedbb8 100644 --- a/pkg/hass/api.go +++ b/pkg/hass/api.go @@ -2,8 +2,9 @@ package hass import ( "errors" - "github.com/gorilla/websocket" "os" + + "github.com/gorilla/websocket" ) type API struct { diff --git a/pkg/mdns/mdns_test.go b/pkg/mdns/mdns_test.go index 956c9807..2d745208 100644 --- a/pkg/mdns/mdns_test.go +++ b/pkg/mdns/mdns_test.go @@ -1,8 +1,9 @@ package mdns import ( - "github.com/stretchr/testify/require" "testing" + + "github.com/stretchr/testify/require" ) func TestDiscovery(t *testing.T) { diff --git a/pkg/mjpeg/rtp.go b/pkg/mjpeg/rtp.go index 6f137f3e..7a9347ef 100644 --- a/pkg/mjpeg/rtp.go +++ b/pkg/mjpeg/rtp.go @@ -3,10 +3,11 @@ package mjpeg import ( "bytes" "encoding/binary" - "github.com/AlexxIT/go2rtc/pkg/core" - "github.com/pion/rtp" "image" "image/jpeg" + + "github.com/AlexxIT/go2rtc/pkg/core" + "github.com/pion/rtp" ) func RTPDepay(handlerFunc core.HandlerFunc) core.HandlerFunc { diff --git a/pkg/ngrok/ngrok.go b/pkg/ngrok/ngrok.go index 1a07d730..33fa0f89 100644 --- a/pkg/ngrok/ngrok.go +++ b/pkg/ngrok/ngrok.go @@ -3,10 +3,11 @@ package ngrok import ( "bufio" "encoding/json" - "github.com/AlexxIT/go2rtc/pkg/core" "io" "os/exec" "strings" + + "github.com/AlexxIT/go2rtc/pkg/core" ) type Ngrok struct { diff --git a/pkg/pcm/v1/pcm_test.go b/pkg/pcm/v1/pcm_test.go index 2db5d95c..07b70b97 100644 --- a/pkg/pcm/v1/pcm_test.go +++ b/pkg/pcm/v1/pcm_test.go @@ -1,9 +1,10 @@ package v1 import ( + "testing" + v2 "github.com/AlexxIT/go2rtc/pkg/pcm" "github.com/stretchr/testify/require" - "testing" ) func TestPCMUtoPCM(t *testing.T) { diff --git a/pkg/roborock/api.go b/pkg/roborock/api.go index 259be645..8876a85b 100644 --- a/pkg/roborock/api.go +++ b/pkg/roborock/api.go @@ -7,11 +7,12 @@ import ( "encoding/base64" "encoding/json" "fmt" - "github.com/AlexxIT/go2rtc/pkg/core" "net/http" "net/url" "strconv" "time" + + "github.com/AlexxIT/go2rtc/pkg/core" ) type UserInfo struct { diff --git a/pkg/tcp/websocket/dial.go b/pkg/tcp/websocket/dial.go index 737a5cbc..3e1fd481 100644 --- a/pkg/tcp/websocket/dial.go +++ b/pkg/tcp/websocket/dial.go @@ -5,10 +5,11 @@ import ( "crypto/sha1" "encoding/base64" "errors" - "github.com/AlexxIT/go2rtc/pkg/tcp" "net" "net/http" "strings" + + "github.com/AlexxIT/go2rtc/pkg/tcp" ) func Dial(address string) (net.Conn, error) { diff --git a/pkg/webtorrent/server.go b/pkg/webtorrent/server.go index e9e3a6b8..86b2be59 100644 --- a/pkg/webtorrent/server.go +++ b/pkg/webtorrent/server.go @@ -3,10 +3,11 @@ package webtorrent import ( "encoding/base64" "fmt" - "github.com/AlexxIT/go2rtc/pkg/core" - "github.com/gorilla/websocket" "sync" "time" + + "github.com/AlexxIT/go2rtc/pkg/core" + "github.com/gorilla/websocket" ) type Server struct {