File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 11module 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
55go 1.18
Original file line number Diff line number Diff line change 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 =
You can’t perform that action at this time.
0 commit comments