From 8bfa8f2460d933890dc5fc887c1bbebf429d6964 Mon Sep 17 00:00:00 2001
From: Tom Tonic
Date: Sun, 22 Sep 2024 10:39:53 +0200
Subject: [PATCH 1/2] Added dedicated linter job
---
.github/workflows/lint.yml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 .github/workflows/lint.yml
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..7431b60
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,19 @@
+name: lint
+on: [push]
+jobs:
+ lint:
+ name: lint
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout
+ uses: actions/checkout@v4
+ - name: setup go
+ uses: actions/setup-go@v5
+ with:
+ go-version-file: go.mod
+ - name: golangci-lint
+ uses: golangci/golangci-lint-action@v6
+ with:
+ version: v1.60.3
+ - name: go mod tidy check
+ uses: katexochen/go-tidy-check@v2
From 1a59653d43dcbe68c1eba7af5dde556de3fdaaa0 Mon Sep 17 00:00:00 2001
From: Tom Tonic
Date: Sun, 22 Sep 2024 10:44:50 +0200
Subject: [PATCH 2/2] Eliminated unused code
---
alt_set_bench_test.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/alt_set_bench_test.go b/alt_set_bench_test.go
index 955777d..b878d31 100644
--- a/alt_set_bench_test.go
+++ b/alt_set_bench_test.go
@@ -438,7 +438,7 @@ func BenchmarkNativeMapFind(b *testing.B) {
//println(x)
}
}
-
+/*
func myGenStringData(size, count int) (result []string) {
src := rand.New(rand.NewSource(int64(size * count)))
letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
@@ -469,3 +469,4 @@ func myGenerateInt64Data(n int) (data []int64) {
}
return
}
+*/