Skip to content

docs: surface dual-loader support (envconfig + env-tag) on framework pages#88

Merged
ankurs merged 1 commit into
mainfrom
docs/dual-loader-tags
May 4, 2026
Merged

docs: surface dual-loader support (envconfig + env-tag) on framework pages#88
ankurs merged 1 commit into
mainfrom
docs/dual-loader-tags

Conversation

@ankurs
Copy link
Copy Markdown
Member

@ankurs ankurs commented May 4, 2026

Summary

The framework Config struct carries both envconfig:"…" and env:"…" struct tags on every field, but the docs only mentioned envconfig — hiding the interop story from users of caarlos0/env, sethvargo/go-envconfig, ilyakaznacheev/cleanenv, and similar env:-tag loaders.

  • config-reference.md: full dual-loader phrasing with three loader examples
  • Packages.md, FAQ.md, architecture.md: shorter mention of compatible env:-tag loaders alongside envconfig
  • howto/APIs.md: drop orphaned [envconfig] reference link def (no body usage)

Howto pages that show users adding fields to their own AppConfig (database, cache, messaging) are intentionally untouched — those examples should still use a single tag matching whichever loader the user chooses.

Pairs with go-coldbrew/core#89, which adds the same note to the Config type doc comment.

Test plan

  • Render Jekyll locally (bundle exec jekyll serve) and confirm the four pages render: /config-reference, /Packages, /FAQ, /architecture
  • Confirm new caarlos0/env links resolve
  • Confirm howto/APIs.md still renders without the removed link def

…pages

The framework Config struct carries both envconfig: and env: struct tags
on every field, but the docs only mentioned envconfig — hiding the
interop story from users of caarlos0/env, sethvargo/go-envconfig,
ilyakaznacheev/cleanenv, and similar env:-tag loaders.

- config-reference.md: full dual-loader phrasing with three loader examples
- Packages.md, FAQ.md, architecture.md: shorter mention of compatible env:-tag loaders alongside envconfig
- howto/APIs.md: drop orphaned [envconfig] reference link def (no body usage)

Howto pages that show users adding fields to their own AppConfig
(database/cache/messaging) are intentionally untouched — those examples
should still use a single tag matching whichever loader the user
chooses.
Copilot AI review requested due to automatic review settings May 4, 2026 15:47
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 4, 2026

Warning

Rate limit exceeded

@ankurs has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 2 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bd4cebbe-6070-44b3-95a4-b5c8d44d9f81

📥 Commits

Reviewing files that changed from the base of the PR and between 4732301 and 0bc9c21.

📒 Files selected for processing (5)
  • FAQ.md
  • Packages.md
  • architecture.md
  • config-reference.md
  • howto/APIs.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/dual-loader-tags

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 59 minutes and 2 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the documentation to explicitly describe that the framework Config struct supports both envconfig:"…" and env:"…" struct tags, clarifying that ColdBrew configuration can be loaded via kelseyhightower/envconfig (cookiecutter default) or other env:-tag loaders.

Changes:

  • Expanded /config-reference to describe dual-tag support and provide multiple loader examples.
  • Added shorter dual-loader mentions to Packages, FAQ, and Architecture.
  • Removed an unused/orphaned [envconfig] link definition from howto/APIs.md (confirmed no remaining envconfig references in that file).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Packages.md Notes dual-tag support for the core config package and links to an env:-tag loader example.
config-reference.md Adds full dual-loader explanation with multiple compatible loader links.
FAQ.md Updates the Kubernetes-native feature list to mention env:-tag loader compatibility.
architecture.md Updates the 12-factor “Config” row to include env:-tag loader compatibility.
howto/APIs.md Removes an unused [envconfig] link definition (no in-file references remain).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ankurs ankurs merged commit 141b516 into main May 4, 2026
15 checks passed
@ankurs ankurs deleted the docs/dual-loader-tags branch May 4, 2026 15:55
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.

2 participants