Skip to content

Commit

Permalink
Atualizar go 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dude333 committed Oct 4, 2023
1 parent 1118333 commit fdfc09a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ['1.18']
go: ['1.21.1']
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go_version: [ 1.18.x ]
go_version: [ 1.21.x ]

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dude333/rapinav2

go 1.18
go 1.21.1

require (
github.com/dustin/go-humanize v1.0.0
Expand Down
3 changes: 1 addition & 2 deletions pkg/infra/infra_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"crypto/tls"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path"
Expand Down Expand Up @@ -83,7 +82,7 @@ func downloadFile(url, filepath string, verbose bool) error {
}

// Write the body to file
counter := ioutil.Discard
counter := io.Discard
if verbose {
fmt.Printf("[ ] Baixando %s", filepath)
counter = &WriteCounter{}
Expand Down
3 changes: 1 addition & 2 deletions pkg/infra/infra_unzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"archive/zip"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -70,7 +69,7 @@ func Unzip(src string, dest string, filters []string, verbose bool) ([]string, e
return filenames, err
}

counter := ioutil.Discard
counter := io.Discard
if verbose {
fmt.Printf("[ ] Unziping %s", fpath)
counter = &WriteCounter{}
Expand Down

0 comments on commit fdfc09a

Please sign in to comment.