docs: replace interface{} with any (Go 1.18+) - #4433
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAll changes replace the Changesinterface{} → any terminology update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4433 +/- ##
=======================================
Coverage 91.39% 91.39%
=======================================
Files 134 134
Lines 13473 13473
=======================================
Hits 12314 12314
Misses 737 737
Partials 422 422
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/middleware/session.md`:
- Around line 474-475: The documentation example for store.RegisterType()
incorrectly shows the any keyword as an argument, which is not valid Go code
since any is a type keyword, not a value instance. Replace the any argument in
the store.RegisterType() function call with a concrete example of an actual type
instance (such as MyCustomType{}) to demonstrate the proper usage pattern and
help users understand how to correctly register their custom types.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 2172f581-c831-40b9-ad81-bc5cac62c3d7
📒 Files selected for processing (4)
client/response.godocs/guide/templates.mddocs/middleware/session.mddocs/whats_new.md
|
Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
Replace
interface{}withanyacross 4 files for Go 1.18+ compatibility.