Rename refactoring

You can rename any field, function, type, variable, package, or any other symbol at the caret. GoLand will update all references of the renamed symbol.

Position the caret at the symbol you want to rename, and press &shortcut:RenameElement; (Refactor | Rename). Type the new name and press &shortcut:EditorEnter;.

Also, the rename refactoring renames methods declared in interfaces. When renaming such methods, you can choose to rename their implementations as well.

Rename refactoring