-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧹 v3 (Maintenance): Update docs to reflect fiber.Ctx struct to interface change #2880
Conversation
…ace change Summary: - Update `Static.Next()` in `/docs/api/app.md` to use the `Ctx` interface - Update `/docs/api/ctx.md` to use the `Ctx` interface Related Issues: gofiber#2879
WalkthroughThis modification focuses on enhancing the Go codebase for the Changes
Related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- docs/api/app.md (1 hunks)
- docs/api/ctx.md (79 hunks)
Additional comments: 59
docs/api/app.md (1)
- 96-96: The change from
*Ctx
toCtx
in theNext
function parameter correctly reflects the transition offiber.Ctx
from a struct to an interface. This update is crucial for users to understand the new interface-based approach tofiber.Ctx
. It's important to ensure that all examples and code snippets in the documentation are updated to reflect this change for consistency and to prevent confusion.docs/api/ctx.md (58)
- 20-23: The method signatures correctly reflect the transition of
Ctx
from a struct to an interface. However, it's important to ensure that the implementation details and examples provided in the documentation are consistent with this change across the entire framework.- 109-109: The method signature for
AllParams
is correctly updated to use theCtx
interface. This change aligns with the objective of enhancing flexibility and decoupling in the codebase.- 133-133: The method signature for
App
correctly uses theCtx
interface. This is a crucial update, ensuring that the documentation accurately reflects the structural changes introduced in version 3 of the Fiber framework.- 151-151: The method signature for
Append
is correctly updated to use theCtx
interface. This change is consistent with the broader initiative to transitionCtx
from a struct to an interface, enhancing the framework's flexibility.- 171-171: The method signature for
Attachment
correctly uses theCtx
interface. This update is part of the documentation effort to accurately represent the changes introduced in version 3 of the Fiber framework.- 199-199: The method signature for
AutoFormat
correctly uses theCtx
interface. This documentation update is essential for developers to understand how to use theAutoFormat
method with the new interface-basedCtx
.- 233-233: The method signature for
BaseURL
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, specifically the transition ofCtx
to an interface.- 251-251: The method signature for
Bind
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 271-271: The method signature for
BodyRaw
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 291-291: The method signature for
Body
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 321-321: The method signature for
BodyParser
correctly uses theCtx
interface. This update is essential for developers to understand how to use theBodyParser
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 365-365: The method signature for
ClearCookie
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 418-418: The method signature for
ClientHelloInfo
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 434-434: The method signature for
Context
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 446-446: The method signature for
Cookie
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 484-484: The method signature for
CookieParser
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 515-515: The method signature for
Cookies
correctly uses theCtx
interface. This update is essential for developers to understand how to use theCookies
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 539-539: The method signature for
Download
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 561-561: The method signature for
Format
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 610-610: The method signature for
FormFile
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 628-628: The method signature for
FormValue
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 653-653: The method signature for
Fresh
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 665-665: The method signature for
Get
correctly uses theCtx
interface. This update is essential for developers to understand how to use theGet
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 685-685: The method signature for
GetReqHeaders
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 700-700: The method signature for
GetRespHeader
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 720-720: The method signature for
GetRespHeaders
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 731-731: The method signature for
GetRouteURL
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 756-756: The method signature for
Hostname
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 777-777: The method signature for
IP
correctly uses theCtx
interface. This update is essential for developers to understand how to use theIP
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 801-801: The method signature for
IPs
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 827-827: The method signature for
Is
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 847-847: The method signature for
IsFromLocal
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 869-869: The method signature for
JSON
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 921-921: The method signature for
JSONP
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 950-950: The method signature for
Links
correctly uses theCtx
interface. This update is essential for developers to understand how to use theLinks
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 975-975: The method signature for
Locals
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 1033-1033: The method signature for
Location
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 1052-1052: The method signature for
Method
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 1071-1071: The method signature for
MultipartForm
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 1110-1110: The method signature for
Next
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 1135-1135: The method signature for
OriginalURL
correctly uses theCtx
interface. This update is essential for developers to understand how to use theOriginalURL
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 1160-1160: The method signature for
Params
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 1212-1212: The method signature for
ParamsInt
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 1232-1232: The method signature for
ParamsParser
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 1252-1252: The method signature for
Path
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 1273-1273: The method signature for
Protocol
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 1291-1291: The method signature for
Queries
correctly uses theCtx
interface. This update is essential for developers to understand how to use theQueries
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 1359-1359: The method signature for
Query
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 1420-1420: The method signature for
QueryParser
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 1454-1454: The method signature for
Range
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 1479-1479: The method signature for
Redirect
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 1514-1514: The method signature for
RedirectToRoute
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.- 1547-1547: The method signature for
RedirectBack
correctly uses theCtx
interface. This update is essential for developers to understand how to use theRedirectBack
method with the new interface-basedCtx
, ensuring a smooth transition to the updated framework.- 1569-1569: The method signature for
Render
correctly uses theCtx
interface. This documentation update is crucial for accurately representing the changes introduced in version 3 of the Fiber framework, specifically the transition ofCtx
to an interface.- 1577-1577: The method signature for
Request
correctly uses theCtx
interface. This change ensures that the documentation is up-to-date with the structural changes in the Fiber framework, enhancing the framework's flexibility and maintainability.- 1593-1593: The method signature for
ReqHeaderParser
correctly uses theCtx
interface. This update is crucial for maintaining accurate and clear documentation, reflecting the changes introduced in version 3 of the Fiber framework.- 1627-1627: The method signature for
Response
correctly uses theCtx
interface. This documentation update aligns with the transition ofCtx
from a struct to an interface, enhancing the framework's flexibility and maintainability.- 1643-1643: The method signature for
RestartRouting
correctly uses theCtx
interface. This change is part of the broader initiative to update the documentation to reflect the structural changes introduced in version 3 of the Fiber framework.
Description
As v3 introduces a new interface for
fiber.Ctx
in preference over the current struct*fiber.Ctx
in v2, this PR updates the Ctx and related docs to reflect this change.Related to #2879
Changes Introduced
Static.Next()
in/docs/api/app.md
to use theCtx
interface/docs/api/ctx.md
to use theCtx
interfaceType of Change
Checklist
Before you submit your pull request, please make sure you meet these requirements:
/docs/
directory for Fiber's documentation.Commit Formatting
Please use emojis in commit messages for an easy way to identify the purpose or intention of a commit. Check out the emoji cheatsheet here: CONTRIBUTING.md
Summary by CodeRabbit