Skip to content

Conversation

@apricote
Copy link
Member

The code example in our README.md only contained a minimal example showing how to set up the client and make a simple GET request.

This introduces two additional "features" to the example:

  1. We sometimes get support requests from users who forget to wait for the returned actions and expect the server (or other resource) to be immediately ready.

  2. We regularly get support requests from users where the rate limit is exhausted by tools that do not identify themselves. This makes it hard to help users, as we are missing information.

By showing the best-practices for both of these cases in the example, I hope that more people adopt them and have a better experience overall.

Additionally I added the example to the go package docs for hcloud, so it also shows up on pkgs.go.dev for the package.

The code example in our README.md only contained a minimal example
showing how to set up the client and make a simple GET request.

This introduces two additional "features" to the example:

1. We sometimes get support requests from users who forget to wait for
   the returned actions and expect the server (or other resource) to be
   immediately ready.

2. We regularly get support requests from users where the rate limit is
   exhausted by tools that do not identify themselves. This makes it
hard to help users, as we are missing information.

By showing the best-practices for both of these cases in the example, I
hope that more people adopt them and have a better experience overall.

Additionally I added the example to the go package docs for `hcloud`, so
it also shows up on pkgs.go.dev for the package.
@apricote apricote self-assigned this Jan 19, 2026
@apricote apricote requested a review from a team as a code owner January 19, 2026 07:05
@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.41%. Comparing base (8a968c5) to head (e085eac).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #808   +/-   ##
=======================================
  Coverage   79.41%   79.41%           
=======================================
  Files          60       60           
  Lines        4566     4566           
=======================================
  Hits         3626     3626           
  Misses        637      637           
  Partials      303      303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apricote apricote merged commit 0d97198 into main Jan 19, 2026
4 checks passed
@apricote apricote deleted the docs branch January 19, 2026 09:21
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.

3 participants