Skip to content

Commit e3b2182

Browse files
committed
Require Go 1.22+
1 parent b2adc88 commit e3b2182

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
- macOS
1212
- Windows
1313
go-version:
14-
- '1.21'
1514
- '1.22'
1615
- '1.23'
16+
- '1.24'
1717
architecture:
1818
- amd64
1919
- arm64

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A [Go](https://go.dev/) implementation of "An O(NP) Sequence Comparison Algorith
1111
## Installation
1212

1313
```console
14-
$ go get -u github.com/hattya/go.diff
14+
$ go get github.com/hattya/go.diff
1515
```
1616

1717

diff_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// go.diff :: diff_test.go
33
//
4-
// Copyright (c) 2014-2021 Akinori Hattori <[email protected]>
4+
// Copyright (c) 2014-2025 Akinori Hattori <[email protected]>
55
//
66
// SPDX-License-Identifier: MIT
77
//
@@ -181,7 +181,7 @@ func BenchmarkDiff(b *testing.B) {
181181
m := len(tt.b)
182182
data := &runes{tt.a, tt.b}
183183
b.ResetTimer()
184-
for i := 0; i < b.N; i++ {
184+
for range b.N {
185185
diff.Diff(n, m, data)
186186
}
187187
}
@@ -191,7 +191,7 @@ func BenchmarkBytes(b *testing.B) {
191191
A := toByte(tt.a)
192192
B := toByte(tt.b)
193193
b.ResetTimer()
194-
for i := 0; i < b.N; i++ {
194+
for range b.N {
195195
diff.Bytes(A, B)
196196
}
197197
}
@@ -201,7 +201,7 @@ func BenchmarkInts(b *testing.B) {
201201
A := toInt(tt.a)
202202
B := toInt(tt.b)
203203
b.ResetTimer()
204-
for i := 0; i < b.N; i++ {
204+
for range b.N {
205205
diff.Ints(A, B)
206206
}
207207
}
@@ -211,7 +211,7 @@ func BenchmarkRunes(b *testing.B) {
211211
A := tt.a
212212
B := tt.b
213213
b.ResetTimer()
214-
for i := 0; i < b.N; i++ {
214+
for range b.N {
215215
diff.Runes(A, B)
216216
}
217217
}
@@ -221,7 +221,7 @@ func BenchmarkStrings(b *testing.B) {
221221
A := toString(tt.a)
222222
B := toString(tt.b)
223223
b.ResetTimer()
224-
for i := 0; i < b.N; i++ {
224+
for range b.N {
225225
diff.Strings(A, B)
226226
}
227227
}

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/hattya/go.diff
22

3-
go 1.21
3+
go 1.22

0 commit comments

Comments
 (0)