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.

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

Check for Vulnerabilities
Check for Vulnerabilities
Analyze your codebase and highlight known vulnerabilities in go.mod
Detect Incorrect Usages
Detect Incorrect Usages
Formatting functions from packages such as pkg/errors, logrus or zap.
Detect Incorrect Usages of t/b.Fatal* Calls in Goroutines
Detect Incorrect Usages of t/b.Fatal* Calls in Goroutines
Find if tests or benchmarks are using t/b.Fatal* calls inside goroutines incorrectly