Compare commits

...

2 Commits

Author SHA1 Message Date
6757ac5d93 updated dependencies
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2023-03-17 13:21:04 +01:00
cf1a9cc244 replaced ioutil.ReadAll by io.ReadAll
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-02 17:14:46 +01:00
2 changed files with 4 additions and 4 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module git.paulbsd.com/paulbsd/g2g
go 1.19
go 1.20
require gopkg.in/ini.v1 v1.67.0

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"sync"
@ -29,7 +29,7 @@ func GetReposFromGitHub(config *config.Config) ([]GitHubRepo, error) {
return nil, err
}
respbody, err := ioutil.ReadAll(resp.Body)
respbody, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
@ -129,7 +129,7 @@ func GetGiteaUserUID(config *config.Config) error {
return err
}
respbody, err := ioutil.ReadAll(resp.Body)
respbody, err := io.ReadAll(resp.Body)
if err != nil {
return err
}