File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
"flag"
6
6
"fmt"
7
7
"html"
8
- "io/ioutil "
8
+ "io"
9
9
"net/http"
10
10
"path"
11
11
"strings"
@@ -71,7 +71,7 @@ func main() {
71
71
}).Methods ("POST" )
72
72
73
73
r .HandleFunc ("/api/v3/admin/organizations" , func (w http.ResponseWriter , r * http.Request ) {
74
- b , err := ioutil .ReadAll (r .Body )
74
+ b , err := io .ReadAll (r .Body )
75
75
if err != nil {
76
76
panic (err )
77
77
}
@@ -129,7 +129,7 @@ func main() {
129
129
130
130
r .HandleFunc ("/api/v3/orgs/{org}/repos" , func (w http.ResponseWriter , r * http.Request ) {
131
131
orgName := mux .Vars (r )["org" ]
132
- b , err := ioutil .ReadAll (r .Body )
132
+ b , err := io .ReadAll (r .Body )
133
133
if err != nil {
134
134
panic (err )
135
135
}
@@ -178,7 +178,7 @@ func main() {
178
178
}).Methods ("POST" )
179
179
180
180
r .HandleFunc ("/api/v3/user/repos" , func (w http.ResponseWriter , r * http.Request ) {
181
- b , err := ioutil .ReadAll (r .Body )
181
+ b , err := io .ReadAll (r .Body )
182
182
if err != nil {
183
183
panic (err )
184
184
}
You can’t perform that action at this time.
0 commit comments