Skip to content

Commit ae63d6a

Browse files
committed
Require Go 1.24+
1 parent 7cdfd63 commit ae63d6a

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
- macOS
1212
- Windows
1313
go-version:
14-
- '1.23'
1514
- '1.24'
1615
- '1.25'
16+
- '1.26'
1717
architecture:
1818
- amd64
1919
- arm64
@@ -39,7 +39,7 @@ jobs:
3939
timeout-minutes: 10
4040
steps:
4141
- name: Checkout code
42-
uses: actions/checkout@v5
42+
uses: actions/checkout@v6
4343
with:
4444
persist-credentials: false
4545
- name: Setup Go
@@ -52,7 +52,7 @@ jobs:
5252
- name: Vet
5353
run: go vet ./...
5454
- name: Upload coverage to Codecov
55-
uses: codecov/codecov-action@v5
55+
uses: codecov/codecov-action@v6
5656
with:
5757
token: ${{ secrets.CODECOV_TOKEN }}
5858
env_vars: GO

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2025 Akinori Hattori <hattya@gmail.com>
1+
Copyright (c) 2014-2026 Akinori Hattori <hattya@gmail.com>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

diff_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// go.diff :: diff_test.go
33
//
4-
// Copyright (c) 2014-2025 Akinori Hattori <hattya@gmail.com>
4+
// Copyright (c) 2014-2026 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 range b.N {
184+
for b.Loop() {
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 range b.N {
194+
for b.Loop() {
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 range b.N {
204+
for b.Loop() {
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 range b.N {
214+
for b.Loop() {
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 range b.N {
224+
for b.Loop() {
225225
diff.Strings(A, B)
226226
}
227227
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/hattya/go.diff
22

3-
go 1.23.0
3+
go 1.24.0

0 commit comments

Comments
 (0)