Rename constants that use reserved names

Rename a constant if it uses a name of a built-in constant.

Tip Screenshot

The inspection will be triggered if you try to assign a value to a constant with one of the following names: iota, true, or false. GoLand will suggest you to rename such usages.

How to use:

Place the cursor on a highlighted constant name, press ⌘⌥⏎ (macOS) / Ctrl+Alt+Enter (Windows/Linux), and select Rename constant. Type a new name and press (macOS) / Enter (Windows/Linux).


Related Resources

Vulnerability checker
Analyze your codebase and highlight known vulnerabilities in go.mod
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions