audit_string_dupes

command
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Command audit_string_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/audit_string_dupes/ <dir|file>...

Jump to

Keyboard shortcuts

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