Skip to content

chore: small code cleanup of client.go#1

Open
pcjacobse wants to merge 1 commit into
masterfrom
feature/small-review
Open

chore: small code cleanup of client.go#1
pcjacobse wants to merge 1 commit into
masterfrom
feature/small-review

Conversation

@pcjacobse

Copy link
Copy Markdown

Did a small cleanup of the code, mostly of client.go. Also cleaned up some linting issues found by golangci-lint. There are a few notes on things I have seen:

  • Plain getters / setters are not common / recommended in Go, it is more common to just expose the variables.
  • pkg/errors package is abandoned since 2021, most functionality is in the native package
  • context.Context should not be passed as nil

Did a small cleanup of the code, mostly of client.go.
Also cleaned up some linting issues found by golangci-lint.
There are a few notes on things I have seen:
- Plain getters / setters are not common / recommended in Go, it is more common to just expose the variables.
- pkg/errors package is abandoned since 2021, most functionality is in the native package
- context.Context should not be passed as nil
@pcjacobse
pcjacobse requested review from LeonB and bartversluijs March 4, 2025 12:37
@LeonB
LeonB force-pushed the master branch 2 times, most recently from c942f00 to cfdf2db Compare June 2, 2026 15:34
@pcjacobse

Copy link
Copy Markdown
Author

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant