Skip to content

Commit 9dff1f3

Browse files
committed
deps: 更新依赖项
1 parent 22e486b commit 9dff1f3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macOS-latest, windows-latest]
13-
go: ['1.18.x', '1.22.x']
13+
go: ['1.18.x', '1.25.x']
1414

1515
steps:
1616

@@ -30,7 +30,7 @@ jobs:
3030
run: go test -v -coverprofile='coverage.txt' -covermode=atomic ./...
3131

3232
- name: Upload Coverage report
33-
uses: codecov/codecov-action@v4
33+
uses: codecov/codecov-action@v5
3434
with:
3535
token: ${{secrets.CODECOV_TOKEN}}
36-
file: ./coverage.txt
36+
files: ./coverage.txt

conv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2014-2024 caixw
1+
// SPDX-FileCopyrightText: 2014-2025 caixw
22
//
33
// SPDX-License-Identifier: MIT
44

@@ -344,7 +344,7 @@ func SliceOf[T any](val any) ([]T, error) {
344344
dest := make([]T, srcV.Len())
345345
destV := reflect.ValueOf(dest)
346346
destT := destV.Type().Elem()
347-
if reflect.TypeOf('a').ConvertibleTo(destT) {
347+
if reflect.TypeOf('a').ConvertibleTo(destT) { // TODO(go1.22) 可用 reflect.TypeFor 代替 typeOf
348348
for i := 0; i < srcV.Len(); i++ {
349349
destV.Index(i).Set(srcV.Index(i).Convert(destT))
350350
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/issue9/conv
22

3-
require github.com/issue9/assert/v4 v4.1.1
3+
require github.com/issue9/assert/v4 v4.3.1
44

55
go 1.18

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/issue9/assert/v4 v4.1.1 h1:OhPE8SB8n/qZCNGLQa+6MQtr/B3oON0JAVj68k8jJlc=
2-
github.com/issue9/assert/v4 v4.1.1/go.mod h1:v7qDRXi7AsaZZNh8eAK2rkLJg5/clztqQGA1DRv9Lv4=
1+
github.com/issue9/assert/v4 v4.3.1 h1:dHYODk1yV7j/1baIB6K6UggI4r1Hfuljqic7PaDbwLg=
2+
github.com/issue9/assert/v4 v4.3.1/go.mod h1:v7qDRXi7AsaZZNh8eAK2rkLJg5/clztqQGA1DRv9Lv4=

0 commit comments

Comments
 (0)