Update Outdated README.md Library Example#1536
Update Outdated README.md Library Example#1536dogancanbakir merged 1 commit intoprojectdiscovery:devfrom
Conversation
Fix outdated example lib usage
WalkthroughThe update modifies the invocation of the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
README.md (1)
374-381: Group the standard-library imports together
contextis part of the Go standard library, but it has been placed in a separate import group after a blank line. While this is only an example in documentation, keeping std-lib imports contiguous (e.g.,log,context) followed by a blank line and then third-party imports is the conventional Go style and avoids lint warnings in copy-pasted code.import ( - "log" - - "context" + "log" + "context" "github.com/projectdiscovery/goflags"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
README.md(2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md
377-377: Hard tabs
Column: 1
(MD010, no-hard-tabs)
399-399: Hard tabs
Column: 1
(MD010, no-hard-tabs)
🔇 Additional comments (1)
README.md (1)
399-399: Good catch updating the call to the new context-aware APIThe example now correctly passes a
context.ContexttoRunEnumeration, reflecting the updated signature. Looks correct as-is. 👍
Fix outdated example lib usage
Summary by CodeRabbit