Skip to content

Commit

Permalink
Use Go 1.17.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbub committed Aug 31, 2021
1 parent 472b898 commit bf7a378
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ clone:

steps:
- name: build
image: golang:1.16
image: golang:1.17
commands:
- go test ./... -v
8 changes: 2 additions & 6 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ func SanitizeURL(token string, u *url.URL) *url.URL {
return u
}

urlStr := u.String()
if strings.Contains(urlStr, token) {
urlStr = strings.Replace(urlStr, token, "REDACTED", -1)
}

redactedURL, _ := url.Parse(urlStr)
redacted := strings.Replace(u.String(), token, "REDACTED", -1)
redactedURL, _ := url.Parse(redacted)
return redactedURL
}
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
module github.com/jbub/fio

go 1.16
go 1.17

require (
github.com/shopspring/decimal v1.2.0
github.com/stretchr/testify v1.7.0
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

0 comments on commit bf7a378

Please sign in to comment.