...
Command gorename
The gorename command performs precise type-safe renaming of identifiers in Go source code.
Run with -help for usage information, or view the Usage constant in package golang.org/x/tools/refactor/rename, which contains most of the implementation.