Skip to content

Commit 1953b65

Browse files
committed
fix: go lint
1 parent 5e463be commit 1953b65

File tree

121 files changed

+159
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+159
-154
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ install-csharp:
4343
## install-go - Install and vendor Go dependencies
4444
install-go:
4545
sh ./symlink_directory_files.sh style_guides/golang .
46-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_BIN) v1.60.1
46+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_BIN) v1.60.3
4747
go mod vendor
4848

4949
## install-java - installs Java dependencies
@@ -83,7 +83,7 @@ lint-csharp:
8383

8484
## lint-go - Lint Go files
8585
lint-go:
86-
$(GO_BIN)/golangci-lint run
86+
$(GO_BIN)/golangci-lint run official/docs/golang/current/... community/... official/guides/...
8787

8888
## lint-java - lints Java files
8989
lint-java:

community/golang/concurrent_label_buy.go renamed to community/golang/concurrent_label_buy/concurrent_label_buy.go

File renamed without changes.
File renamed without changes.

community/golang/concurrent_shipment_scanform.go renamed to community/golang/concurrent_shipment_scanform/concurrent_shipment_scanform.go

File renamed without changes.

community/golang/webhook_handler.go renamed to community/golang/webhook_handler/webhook_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (h *Handler) HandlePaymentEvent(event *easypost.Event) {
9797
}
9898
verb := strings.TrimPrefix(event.Description, "payment.")
9999
log.Printf(
100-
"payment %s %s with amount %s and status %d\n",
100+
"payment %s %s with amount %s and status %v\n",
101101
payment.ID, verb, payment.Amount, payment.Status,
102102
)
103103
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ go 1.15
55
require (
66
github.com/EasyPost/easypost-go/v2 v2.20.0
77
github.com/EasyPost/easypost-go/v3 v3.2.0
8-
github.com/EasyPost/easypost-go/v4 v4.3.0
8+
github.com/EasyPost/easypost-go/v4 v4.6.0
99
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ github.com/EasyPost/easypost-go/v2 v2.20.0 h1:DSqpwwTq2XDLg3Nlfk9KSoMHNEyZsqJSyM
22
github.com/EasyPost/easypost-go/v2 v2.20.0/go.mod h1:+C9K2M4jvFSvN06xYXM2qom4zxmxPDTObQHu++C3hCs=
33
github.com/EasyPost/easypost-go/v3 v3.2.0 h1:dNWmPG1AkpgYFJxhw/zGzCz1JOVXPpNIi8+JND4UHzk=
44
github.com/EasyPost/easypost-go/v3 v3.2.0/go.mod h1:WDD0qkjwxedVKFXCcdJBz22rtRHpuxjGazgSVcTfdIw=
5-
github.com/EasyPost/easypost-go/v4 v4.3.0 h1:UgYZOJuMK2mbXBHSrWlazGzYyYys14QstSFeFDQ98aM=
6-
github.com/EasyPost/easypost-go/v4 v4.3.0/go.mod h1:WGoS4tmjHquhooMNmY6RirP+KWeYV/akcf/Jg9Q6fsk=
5+
github.com/EasyPost/easypost-go/v4 v4.6.0 h1:wxMK4wkGEG5vW/4Vdy3rwE9iqww1eQ1xS6oYWUZbhrc=
6+
github.com/EasyPost/easypost-go/v4 v4.6.0/go.mod h1:WGoS4tmjHquhooMNmY6RirP+KWeYV/akcf/Jg9Q6fsk=
77
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
88
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
99
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=

official/docs/golang/current/addresses/create-and-verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/EasyPost/easypost-go/v4"
77
)
88

9-
func main() {
9+
func createAndVerify() {
1010
client := easypost.New("EASYPOST_API_KEY")
1111

1212
address, _ := client.CreateAndVerifyAddress(

official/docs/golang/current/addresses/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/EasyPost/easypost-go/v4"
77
)
88

9-
func main() {
9+
func create() {
1010
client := easypost.New("EASYPOST_API_KEY")
1111

1212
address, _ := client.CreateAddress(

official/docs/golang/current/addresses/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/EasyPost/easypost-go/v4"
77
)
88

9-
func main() {
9+
func list() {
1010
client := easypost.New("EASYPOST_API_KEY")
1111

1212
addresses, _ := client.ListAddresses(

0 commit comments

Comments
 (0)