find_dupes

command
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command find_dupes scans Go source files for duplicated string literals that appear three or more times and are not already declared as constants. It uses the go/ast parser to inspect string literals and filters out short strings (< 3 chars) and JSON field names.

Usage:

go run ./cmd/find_dupes/ <dir|file>...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL