File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11
11
- macOS
12
12
- Windows
13
13
go-version :
14
- - ' 1.21'
15
14
- ' 1.22'
16
15
- ' 1.23'
16
+ - ' 1.24'
17
17
architecture :
18
18
- amd64
19
19
- arm64
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ A [Go](https://go.dev/) implementation of "An O(NP) Sequence Comparison Algorith
11
11
## Installation
12
12
13
13
``` console
14
- $ go get -u github.com/hattya/go.diff
14
+ $ go get github.com/hattya/go.diff
15
15
```
16
16
17
17
Original file line number Diff line number Diff line change 1
1
//
2
2
// go.diff :: diff_test.go
3
3
//
4
- // Copyright (c) 2014-2021 Akinori Hattori <[email protected] >
4
+ // Copyright (c) 2014-2025 Akinori Hattori <[email protected] >
5
5
//
6
6
// SPDX-License-Identifier: MIT
7
7
//
@@ -181,7 +181,7 @@ func BenchmarkDiff(b *testing.B) {
181
181
m := len (tt .b )
182
182
data := & runes {tt .a , tt .b }
183
183
b .ResetTimer ()
184
- for i := 0 ; i < b .N ; i ++ {
184
+ for range b .N {
185
185
diff .Diff (n , m , data )
186
186
}
187
187
}
@@ -191,7 +191,7 @@ func BenchmarkBytes(b *testing.B) {
191
191
A := toByte (tt .a )
192
192
B := toByte (tt .b )
193
193
b .ResetTimer ()
194
- for i := 0 ; i < b .N ; i ++ {
194
+ for range b .N {
195
195
diff .Bytes (A , B )
196
196
}
197
197
}
@@ -201,7 +201,7 @@ func BenchmarkInts(b *testing.B) {
201
201
A := toInt (tt .a )
202
202
B := toInt (tt .b )
203
203
b .ResetTimer ()
204
- for i := 0 ; i < b .N ; i ++ {
204
+ for range b .N {
205
205
diff .Ints (A , B )
206
206
}
207
207
}
@@ -211,7 +211,7 @@ func BenchmarkRunes(b *testing.B) {
211
211
A := tt .a
212
212
B := tt .b
213
213
b .ResetTimer ()
214
- for i := 0 ; i < b .N ; i ++ {
214
+ for range b .N {
215
215
diff .Runes (A , B )
216
216
}
217
217
}
@@ -221,7 +221,7 @@ func BenchmarkStrings(b *testing.B) {
221
221
A := toString (tt .a )
222
222
B := toString (tt .b )
223
223
b .ResetTimer ()
224
- for i := 0 ; i < b .N ; i ++ {
224
+ for range b .N {
225
225
diff .Strings (A , B )
226
226
}
227
227
}
Original file line number Diff line number Diff line change 1
1
module github.com/hattya/go.diff
2
2
3
- go 1.21
3
+ go 1.22
You can’t perform that action at this time.
0 commit comments