From 29b96b3405ad64aca521d6af86b324a32f8db31d Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 21 May 2025 11:29:36 -0700 Subject: [PATCH] fix import --- Makefile | 3 +++ go.mod | 5 +---- go.sum | 1 - main.go | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5b45de5..c1c0275 100644 --- a/Makefile +++ b/Makefile @@ -10,5 +10,8 @@ copy: main.go run: copy ssh -t root@las1stor1 -v "cd /tmp/x && go run ." +lint: + golangci-lint run + clean: rm main.go diff --git a/go.mod b/go.mod index 05056ee..62a20e5 100644 --- a/go.mod +++ b/go.mod @@ -2,10 +2,7 @@ module git.eeqj.de/sneak/rtnetmon go 1.22.2 -require ( - github.com/gdamore/tcell/v2 v2.8.1 - github.com/montanaflynn/stats v0.7.1 -) +require github.com/gdamore/tcell/v2 v2.8.1 require ( github.com/gdamore/encoding v1.0.1 // indirect diff --git a/go.sum b/go.sum index 041f72a..2535246 100644 --- a/go.sum +++ b/go.sum @@ -7,7 +7,6 @@ github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69 github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw= github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= diff --git a/main.go b/main.go index d77774e..e5a68f3 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ import ( "syscall" "time" - "github.com/gdamore/tcell/v2" + tcell "github.com/gdamore/tcell/v2" ) /*────────────────── CLI flags ──────────────────*/