Go 并发文件文本搜索库
GitHub - raiyanyahya/fast-text-search: ☄️ A go package to do extremely fast concurrent text search across files and folders. · GitHub
Skip to content (https://github.com/raiyanyahya/fast-text-search#start-of-content)
Navigation Menu
Toggle navigation
https://github.com/
Sign in (https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fraiyanyahya%2Ffast-text-search)
Appearance settings
*
Platform
*
AI CODE CREATION
• GitHub Copilot Write better code with AI (https://github.com/features/copilot)
• GitHub Copilot app Direct agents from issue to merge (https://github.com/features/ai/github-app)
• MCP Registry New Integrate external tools (https://github.com/mcp)
*
DEVELOPER WORKFLOWS
• Actions Automate any workflow (https://github.com/features/actions)
• Codespaces Instant dev environments (https://github.com/features/codespaces)
• Issues Plan and track work (https://github.com/features/issues)
• Code Review Manage code changes (https://github.com/features/code-review)
*
APPLICATION SECURITY
• GitHub Advanced Security Find and fix vulnerabilities (https://github.com/security/advanced-security)
• Code security Secure your code as you build (https://github.com/security/advanced-security/code-security)
• Secret protection Stop leaks before they start (https://github.com/security/advanced-security/secret-protection)
*
EXPLORE
• Why GitHub (https://github.com/why-github)
• Documentation (https://docs.github.com/)
• Blog (https://github.blog/)
• Changelog (https://github.blog/changelog)
• Marketplace (https://github.com/marketplace)
View all features (https://github.com/features)
*
Solutions
*
BY COMPANY SIZE
• Enterprises (https://github.com/enterprise)
• Small and medium teams (https://github.com/team)
• Startups (https://github.com/enterprise/startups)
• Nonprofits (https://github.com/solutions/industry/nonprofits)
*
BY USE CASE
• App Modernization (https://github.com/solutions/use-case/app-modernization)
• DevSecOps (https://github.com/solutions/use-case/devsecops)
• DevOps (https://github.com/solutions/use-case/devops)
• CI/CD (https://github.com/solutions/use-case/ci-cd)
• View all use cases (https://github.com/solutions/use-case)
*
BY INDUSTRY
• Healthcare (https://github.com/solutions/industry/healthcare)
• Financial services (https://github.com/solutions/industry/financial-services)
• Manufacturing (https://github.com/solutions/industry/manufacturing)
• Government (https://github.com/solutions/industry/government)
• View all industries (https://github.com/solutions/industry)
View all solutions (https://github.com/solutions)
*
Resources
*
EXPLORE BY TOPIC
• AI (https://github.com/resources/articles?topic=ai)
• Software Development (https://github.com/resources/articles?topic=software-development)
• DevOps (https://github.com/resources/articles?topic=devops)
• Security (https://github.com/resources/articles?topic=security)
• View all topics (https://github.com/resources/articles)
*
EXPLORE BY TYPE
• Customer stories (https://github.com/customer-stories)
• Events & webinars (https://github.com/resources/events)
• Ebooks & reports (https://github.com/resources/whitepapers)
• Business insights (https://github.com/solutions/executive-insights)
• GitHub Skills (https://skills.github.com/)
*
SUPPORT & SERVICES
• Documentation (https://docs.github.com/)
• Customer support (https://support.github.com/)
• Community forum (https://github.com/orgs/community/discussions)
• Trust center (https://github.com/trust-center)
• Partners (https://github.com/partners)
View all resources (https://github.com/resources)
*
Open Source
*
COMMUNITY
• GitHub Sponsors Fund open source developers (https://github.com/sponsors)
*
PROGRAMS
• Security Lab (https://securitylab.github.com/)
• Maintainer Community (https://maintainers.github.com/)
• Accelerator (https://github.com/accelerator)
• GitHub Stars (https://stars.github.com/)
• Archive Program (https://archiveprogram.github.com/)
*
REPOSITORIES
• Topics (https://github.com/topics)
• Trending (https://github.com/trending)
• Collections (https://github.com/collections)
*
Enterprise
*
ENTERPRISE SOLUTIONS
• Enterprise platform AI-powered developer platform (https://github.com/enterprise)
*
AVAILABLE ADD-ONS
• GitHub Advanced Security Enterprise-grade security features (https://github.com/security/advanced-security)
• Copilot for Business Enterprise-grade AI features (https://github.com/features/copilot/copilot-business)
• Premium Support Enterprise-grade 24/7 support (https://github.com/premium-support)
• Pricing (https://github.com/pricing)
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search
Clear
Search syntax tips (https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax)
Provide feedback
We read every piece of feedback, and take your input very seriously.
• Include my email address so I can be contacted
Cancel Submit feedback
Saved searches
Use saved searches to filter your results more quickly
Name
Query
To see all available qualifiers, see our documentation (https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax).
Cancel Create saved search
Sign in (https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fraiyanyahya%2Ffast-text-search)
Sign up (https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=raiyanyahya%2Ffast-text-search)
Appearance settings
Resetting focus
You signed in with another tab or window. Reload (https://github.com/raiyanyahya/fast-text-search) to refresh your session.You signed out in another tab or window. Reload (https://github.com/raiyanyahya/fast-text-search) to refresh your session.You switched accounts on another tab or window. Reload (https://github.com/raiyanyahya/fast-text-search) to refresh your session.Dismiss alert
{{ message }}
raiyanyahya (https://github.com/raiyanyahya)/fast-text-search (https://github.com/raiyanyahya/fast-text-search)Public
• Notifications (https://github.com/login?return_to=%2Fraiyanyahya%2Ffast-text-search)You must be signed in to change notification settings
• Fork 3 (https://github.com/login?return_to=%2Fraiyanyahya%2Ffast-text-search)
• Star 4 (https://github.com/login?return_to=%2Fraiyanyahya%2Ffast-text-search)
• Code (https://github.com/raiyanyahya/fast-text-search)
• Issues 0 (https://github.com/raiyanyahya/fast-text-search/issues)
• Pull requests 1 (https://github.com/raiyanyahya/fast-text-search/pulls)
• Actions (https://github.com/raiyanyahya/fast-text-search/actions)
• Projects (https://github.com/raiyanyahya/fast-text-search/projects)
• Security and quality 0 (https://github.com/raiyanyahya/fast-text-search/security)
• Insights (https://github.com/raiyanyahya/fast-text-search/pulse)
Additional navigation options
• Code (https://github.com/raiyanyahya/fast-text-search)
• Issues (https://github.com/raiyanyahya/fast-text-search/issues)
• Pull requests (https://github.com/raiyanyahya/fast-text-search/pulls)
• Actions (https://github.com/raiyanyahya/fast-text-search/actions)
• Projects (https://github.com/raiyanyahya/fast-text-search/projects)
• Security and quality (https://github.com/raiyanyahya/fast-text-search/security)
• Insights (https://github.com/raiyanyahya/fast-text-search/pulse)
https://github.com/raiyanyahya/fast-text-search
raiyanyahya/fast-text-search
master
Branches (https://github.com/raiyanyahya/fast-text-search/branches)Tags (https://github.com/raiyanyahya/fast-text-search/tags)
https://github.com/raiyanyahya/fast-text-search/brancheshttps://github.com/raiyanyahya/fast-text-search/tags
Go to file
Code
Open more actions menu
Folders and files
Repository files navigation
• README (https://github.com/raiyanyahya/fast-text-search#)
• MIT license (https://github.com/raiyanyahya/fast-text-search#)
☄️ fast-text-search
https://github.com/raiyanyahya/fast-text-search#%EF%B8%8F-fast-text-search
A go package to do extremely fast concurrent text search across files and folders.
Description
https://github.com/raiyanyahya/fast-text-search#description
Search for text recursively taking advantage of concurrency via GO routines. Import the project has a package and plugin the search functionality or use it as a command line application. Features options to ignore filetypes and directories during search.
Package Usage
https://github.com/raiyanyahya/fast-text-search#package-usage
Use the file search logic and plug it in to existing codebases.
undefinedgo
import "github.com/raiyanyahya/fast-text-search/fts"
var (
SearchString string // String to search for [mandatory]
FileName string // Explicitly mention the filename to look in.
ExtensionType string // Only search files with these extensions.
IgnoreFolders []string // Exclude these directories while searching.
IgnoreExt []string // Do not open files with these extensions while searching.
SearchDirectory string // The starting search directory.
)
func main(){
hits := fts.FTS(searchString, SearchDirectory, IgnoreExt, IgnoreFolders,
FileName, ExtensionType)
}
undefined
Command Line Usage
https://github.com/raiyanyahya/fast-text-search#command-line-usage
You could also use this directly from the command line.
undefinedshell
Extremely fast and concurrent text search in Golang
Usage:
fts [flags]
Flags:
• d, --dir string The directory to search in (default ".")
• e, --ext string The extension of files to search in
• x, --extignore stringArray The extension type to ignore during search
• f, --file string The file to seach in
• i, --folderignore stringArray The folders names to ignore during search
• h, --help help for fts
• t, --text string The string to search for
• v, --version version for fts
undefined
License
https://github.com/raiyanyahya/fast-text-search#license
FTS is a free for open-source projects, however, if you are using the library for business and commercial projects you could choose to buy me a coffee.
Contributing
https://github.com/raiyanyahya/fast-text-search#contributing
Contributions are always welcome! See contributing.md for ways to get started. Please adhere to this project's code of conduct.
Contact
https://github.com/raiyanyahya/fast-text-search#contact
Contact me through email.
About
☄️ A go package to do extremely fast concurrent text search across files and folders.
Topics
search (https://github.com/topics/search)golang (https://github.com/topics/golang)analytics (https://github.com/topics/analytics)command-line (https://github.com/topics/command-line)concurrent (https://github.com/topics/concurrent)text-search (https://github.com/topics/text-search)
Resources
Readme (https://github.com/raiyanyahya/fast-text-search#readme-ov-file)
License
MIT license (https://github.com/raiyanyahya/fast-text-search#MIT-1-ov-file)
Uh oh!
There was an error while loading. Please reload this page (https://github.com/raiyanyahya/fast-text-search).
Activity (https://github.com/raiyanyahya/fast-text-search/activity)
Stars
4 stars (https://github.com/raiyanyahya/fast-text-search/stargazers)
Watchers
1 watching (https://github.com/raiyanyahya/fast-text-search/watchers)
Forks
3 forks (https://github.com/raiyanyahya/fast-text-search/forks)
Report repository (https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fraiyanyahya%2Ffast-text-search&report=raiyanyahya+%28user%29)
Releases (https://github.com/raiyanyahya/fast-text-search/releases)
No releases published
Packages 0 (https://github.com/users/raiyanyahya/packages?repo_name=fast-text-search)
Uh oh!
There was an error while loading. Please reload this page (https://github.com/raiyanyahya/fast-text-search).
Uh oh!
There was an error while loading. Please reload this page (https://github.com/raiyanyahya/fast-text-search).
Contributors (https://github.com/raiyanyahya/fast-text-search/graphs/contributors)
*
*
*
Uh oh!
There was an error while loading. Please reload this page (https://github.com/raiyanyahya/fast-text-search).
Languages
• Go 100.0% (https://github.com/raiyanyahya/fast-text-search/search?l=go)
Footer
https://github.com/ © 2026 GitHub,Inc.
Footer navigation
• Terms (https://docs.github.com/site-policy/github-terms/github-terms-of-service)
• Privacy (https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
• Security (https://github.com/security)
• Status (https://www.githubstatus.com/)
• Community (https://github.community/)
• Docs (https://docs.github.com/)
• Contact (https://support.github.com/?tags=dotcom-footer)
• Manage cookies
• Do not share my personal information
You can’t perform that action at this time.