fix(ci): fix lint errors and pin CI to Go 1.25
- Run gofmt on all files - Export SetupUPnP to fix unused lint error - Remove Go 1.26 from CI matrix (only test with 1.25)
This commit is contained in:
parent
3e0f3a5a64
commit
d0dbfc3d12
10 changed files with 31 additions and 31 deletions
|
|
@ -275,7 +275,7 @@ func TestFormatTimeAgo(t *testing.T) {
|
|||
now := time.Now()
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
name string
|
||||
input string
|
||||
want string
|
||||
}{
|
||||
|
|
@ -356,6 +356,6 @@ func TestPtr(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func ptr[T any](v T) *T { return &v }
|
||||
func intPtr(v int) *int { return &v }
|
||||
func ptr[T any](v T) *T { return &v }
|
||||
func intPtr(v int) *int { return &v }
|
||||
func strPtr(v string) *string { return &v }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue