File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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
Original file line number Diff line number Diff line change 11//
22// go.diff :: diff_test.go
33//
4- // Copyright (c) 2014-2021 Akinori Hattori <hattya@gmail.com>
4+ // Copyright (c) 2014-2025 Akinori Hattori <hattya@gmail.com>
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}
Original file line number Diff line number Diff line change 11module github.com/hattya/go.diff
22
3- go 1.21
3+ go 1.22
You can’t perform that action at this time.
0 commit comments