Skip to content

Commit 2c827ea

Browse files
committed
Update golang varsion
1 parent 11c04d3 commit 2c827ea

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go 1.x
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: 1.19.2
21+
go-version: 1.21.6
2222

2323
- name: Check out code into the Go module directory
2424
uses: actions/checkout@v2
@@ -27,7 +27,7 @@ jobs:
2727
uses: golangci/golangci-lint-action@v2
2828
with:
2929
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
30-
version: v1.50.1
30+
version: v1.55.2
3131

3232
# Optional: working directory, useful for monorepos
3333
# working-directory: somedir

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ linters:
184184
- dupword
185185
- gomnd
186186
- wrapcheck
187+
- exhaustruct # mad linter
188+
- depguard
187189

188190
issues:
189191
exclude:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/gorcon/rcon
22

3-
go 1.19
3+
go 1.21

rcon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func Dial(address string, password string, options ...Option) (*Conn, error) {
115115
if err := client.auth(password); err != nil {
116116
// Failed to auth conn with the server.
117117
if err2 := client.Close(); err2 != nil {
118-
return &client, fmt.Errorf("%w: %v. Previous error: %v", ErrMultiErrorOccurred, err2, err)
118+
return &client, fmt.Errorf("%w: %s. Previous error: %s", ErrMultiErrorOccurred, err2.Error(), err.Error())
119119
}
120120

121121
return &client, fmt.Errorf("rcon: %w", err)

0 commit comments

Comments
 (0)