Compare commits
No commits in common. "master" and "1.0.5" have entirely different histories.
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module git.paulbsd.com/paulbsd/g2g
|
module git.paulbsd.com/paulbsd/g2g
|
||||||
|
|
||||||
go 1.20
|
go 1.19
|
||||||
|
|
||||||
require gopkg.in/ini.v1 v1.67.0
|
require gopkg.in/ini.v1 v1.67.0
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
@ -29,7 +29,7 @@ func GetReposFromGitHub(config *config.Config) ([]GitHubRepo, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
respbody, err := io.ReadAll(resp.Body)
|
respbody, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ func GetGiteaUserUID(config *config.Config) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
respbody, err := io.ReadAll(resp.Body)
|
respbody, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user