Skip to content

Commit d133e5c

Browse files
committed
Update to Go 1.19
1 parent 78307cf commit d133e5c

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0 # Needed to describe git ref during build.
1717

1818
- name: Export GOBIN
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.18
21+
go-version: '1.19'
2222

2323
- name: Install dependencies
2424
run: make setup

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pushbits/cli
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/alecthomas/kong v0.5.0

internal/api/mod.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package api
33
import (
44
"encoding/json"
55
"io"
6-
"io/ioutil"
76
"net/http"
87
"net/url"
98
"strings"
@@ -80,7 +79,7 @@ func Request(base, endpoint, method, proxy, username, password string, hasBody b
8079
}
8180

8281
defer resp.Body.Close()
83-
bodyText, err := ioutil.ReadAll(resp.Body)
82+
bodyText, err := io.ReadAll(resp.Body)
8483
if err != nil {
8584
log.Fatal(err)
8685
}

0 commit comments

Comments
 (0)