Generates Go code for a file system indexer CLI tool.
Build a high-performance file system indexer and search tool in Go. Implement recursive directory traversal with configurable depth. Add file metadata extraction including size, dates, and permissions. Include content indexing with optional full-text search. Implement advanced query syntax with boolean operators and wildcards. Add incremental indexing for performance. Include export functionality in JSON and CSV formats. Implement search result highlighting. Add duplicate file detection using checksums. Include performance statistics and progress reporting. Implement concurrent processing for multi-core utilization.
This prompt directs an AI to produce a complete Go implementation of a high-performance file system indexer and search tool. It covers recursive traversal, metadata handling, full-text search, query syntax, and export options. The result is production-ready source code with concurrency and duplicate detection features.
A complete main.go file implementing recursive WalkDir traversal, metadata structs, Bleve or similar indexing, boolean query parsing, JSON/CSV export flags, and goroutine-based concurrent scanning with progress bars.
No, it is a self-contained instruction that produces the full tool directly.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by f. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.