Hacker News new | past | comments | ask | show | jobs | submit login

Wrote small Go tools related to the language's AST, using the go/ast and go/build packages.

The `predeclared' command finds identifiers that shadow Go's built-in identifiers (make, copy, error, etc.). This type of shadowing results in cognitive overhead when reading code or can lead to unexpected bugs.

https://github.com/nishanths/predeclared

The `dedupimport' command fixes duplicate named import declarations in Go source files; i.e. imports that have the same import path but different import names [2].

https://github.com/nishanths/dedupimport




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: