🚀 Fast Analysis
Built with Go’s native AST parsing for lightning-fast code analysis
similarity-go is a powerful CLI tool designed to help Go developers identify duplicate and similar code patterns in their codebases. By leveraging Go’s Abstract Syntax Tree (AST) analysis, it provides accurate and meaningful similarity detection that goes beyond simple text matching.
🚀 Fast Analysis
Built with Go’s native AST parsing for lightning-fast code analysis
🎯 Accurate Detection
Uses sophisticated algorithms to detect semantic similarities, not just textual matches
⚙️ Configurable
Customize similarity thresholds and ignore patterns to fit your needs
📊 Rich Output
Multiple output formats including JSON, YAML, and human-readable reports
Try similarity-go directly in your browser:
Experience similarity-go's AST analysis in real-time
Demo Note: This is a simulated analysis for demonstration. The actual similarity-go CLI provides:
Unlike simple text-based tools, similarity-go analyzes the structure of your code using Go’s Abstract Syntax Tree. This means it can detect functionally similar code even when variable names, comments, or formatting differ.
Fine-tune the detection sensitivity to match your project’s needs. Set different thresholds for different types of similarities.
Get results in the format that works best for your workflow:
Built for speed with parallel processing and efficient memory usage, even on large codebases.
similarity-go performance across different codebase sizes
What makes similarity-go fast and efficient
Ready to start finding similarities in your Go code?