Skip to content

📒 docs: refine v3 migration guide and align listen/hooks docs#4045

Merged
ReneWerner87 merged 1 commit intomainfrom
improve-documentation-in-whats_new.md
Feb 2, 2026
Merged

📒 docs: refine v3 migration guide and align listen/hooks docs#4045
ReneWerner87 merged 1 commit intomainfrom
improve-documentation-in-whats_new.md

Conversation

@gaby
Copy link
Copy Markdown
Member

@gaby gaby commented Feb 2, 2026

Motivation

  • Clarify v3 migration guidance and minimum toolchain by stating the Go 1.25+ requirement.
  • Ensure documentation reflects current listener and hook APIs (use ListenConfig, prefer TLSConfig, consolidate shutdown hooks).
  • Fix examples and wording for sub-app mounting, filesystem vs static middleware, and logger helper text so docs match the implementation.

Description

  • Updated docs/whats_new.md to require Go 1.25+, standardize examples to fiber.ListenConfig, clarify TLS/listen migration, reword filesystem removal and logger helper phrasing, and replace legacy shutdown callbacks example with the OnPostShutdown hook example.
  • Updated docs/api/hooks.md to remove the obsolete ListenTLS mention from the OnListen description and replaced the sub-app mount example to use app.Use with a sub-app.
  • Updated docs/extra/internal.md to align the sub-application mounting wording to describe Use semantics and mounting behavior.
  • Adjusted hooks.go comment to reflect current listener APIs by removing ListenTLS from the OnListen hook comment.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @gaby, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on enhancing and clarifying the documentation for Fiber v3. It updates migration guidance to reflect the new Go 1.25+ requirement, standardizes API usage for listening configurations and TLS, and aligns sub-application mounting examples with current app.Use semantics. Additionally, it refines explanations for middleware changes and consolidates shutdown hook examples, ensuring the documentation accurately reflects the latest Fiber v3 implementation.

Highlights

  • Go Version Requirement: The migration guide now explicitly states that Fiber v3 requires Go 1.25+, advising users to update their toolchain accordingly.
  • Listen Configuration Standardization: Documentation and examples have been updated to consistently use fiber.ListenConfig for application listening, replacing older ListenerConfig references.
  • TLS Configuration Clarity: The migration guide now provides clearer guidance on configuring TLS, recommending TLSConfig for full control and CertFile/CertKeyFile for simpler setups.
  • Sub-App Mounting Alignment: Examples and internal documentation for mounting sub-applications have been updated to use app.Use instead of app.Mount, reflecting current API semantics.
  • Shutdown Hook Consolidation: The documentation now promotes the use of the OnPostShutdown hook for handling shutdown errors, replacing the older OnShutdownError and OnShutdownSuccess callbacks.
  • Middleware Documentation Refinement: Wording for the removal of filesystem middleware and the usage of the LoggerToWriter helper function has been clarified.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@ReneWerner87 ReneWerner87 added this to the v3 milestone Feb 2, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 2, 2026

Walkthrough

Documentation updates clarifying listener configuration terminology and mounting method examples. Changes include renaming ListenerConfig to ListenConfig, removing ListenTLS references from OnListen hooks, and updating sub-application mounting examples from Mount to Use method.

Changes

Cohort / File(s) Summary
Listener/Hook Documentation
hooks.go, docs/api/hooks.md
Updated OnListen documentation comment and example to reference Listen/Listener (removed ListenTLS). Changed OnMount example from app.Mount() to app.Use() method.
Sub-Application Mounting
docs/extra/internal.md
Clarified mounting description for Sub-Application Mounting & Grouping section to reflect Use method with sub-app instead of Mount/mount approach.
General Documentation & Terminology
docs/whats_new.md
Minor wording and terminology updates including ListenerConfig → ListenConfig references, "Drop for old Go versions" → "Dropping support for old Go versions", and clarifications around shutdown hooks and TLS/config usage.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • sixcolors
  • ReneWerner87
  • efectn

Poem

🐰 Hopping through docs with care and might,
Fixing names from wrong to right,
ListenerConfig now shines with grace,
Mount becomes Use in every place,
OnListen truths we gently state,
Clearer paths to navigate! 📚

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main changes: documentation refinements for v3 migration and alignment of listen/hooks documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description is comprehensive and well-structured, covering motivation, detailed description of all changes, and testing results.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch improve-documentation-in-whats_new.md

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

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

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request provides a series of valuable documentation updates for the v3 migration. The changes effectively clarify the Go 1.25+ requirement, align examples with API changes like using fiber.ListenConfig and app.Use, and replace legacy shutdown callback examples with the new hooks API. The wording improvements and typo fixes across the migration guide and API docs enhance clarity and correctness. Overall, these are excellent refinements that will greatly assist users in migrating to v3.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.21%. Comparing base (13ac7eb) to head (951bbf6).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4045   +/-   ##
=======================================
  Coverage   91.21%   91.21%           
=======================================
  Files         119      119           
  Lines       11117    11117           
=======================================
  Hits        10140    10140           
  Misses        620      620           
  Partials      357      357           
Flag Coverage Δ
unittests 91.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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 tightens the v3 migration/doc story around listeners, hooks, and sub-app mounting, and aligns comments/docs with the current APIs.

Changes:

  • Clarifies the minimum supported Go version for Fiber v3 and refines the migration guidance in docs/whats_new.md, including updated listen/TLS and shutdown hook examples.
  • Aligns hook and listen documentation (docs/api/hooks.md, docs/extra/internal.md) with the current ListenConfig/OnListen/OnPreShutdown APIs and the sub-app mounting behavior via Use.
  • Updates the OnListen hook comment in hooks.go to match the removal of ListenTLS helpers and the new listen surface.

Reviewed changes

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

File Description
hooks.go Narrowed the OnListen hook comment to refer only to Listen and Listener, matching the current public API (no ListenTLS helpers).
docs/whats_new.md Updated Go version requirements, shutdown hook migration example, listen/TLS migration details, filesystem vs static middleware wording, and logger helper description so they match the implemented APIs and behavior.
docs/extra/internal.md Updated the sub-application mounting description to correctly describe mounting via Use with a sub-app and the resulting internal mount-path behavior.
docs/api/hooks.md Adjusted OnListen documentation to drop the obsolete ListenTLS reference and updated the OnMount example to mount sub-apps via app.Use("/sub", subApp) as in v3.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/api/hooks.md (1)

131-135: ⚠️ Potential issue | 🟡 Minor

Run make markdown to lint the modified documentation file.

Per coding guidelines for **/*.md files, lint this file after modifications.

@ReneWerner87 ReneWerner87 merged commit f8f34f6 into main Feb 2, 2026
27 of 28 checks passed
@ReneWerner87 ReneWerner87 deleted the improve-documentation-in-whats_new.md branch February 2, 2026 17:59
@github-project-automation github-project-automation Bot moved this to Done in v3 Feb 2, 2026
@ReneWerner87 ReneWerner87 modified the milestones: v3, v3.0.0 Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants