Convert Empty Interfaces to `any`

Check and replace empty interfaces that are used as types or type constraints.

Tip Screenshot

GoLand has an inspection that reports usages of empty interfaces used as a type or a type constraint. To fix such usages, try the Replace with 'any' intention action.

How to use: Place the cursor on an empty interface, press ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), and select Replace with 'any'.


Related Resources

Rename Generic Receivers Along with a Generic Struct
Rename Generic Receivers Along with a Generic Struct
Get refactoring support when you rename a generic struct.
Generate Tests for Generic Functions
Generate Tests for Generic Functions
Use a shortcut to generate test files for your generic functions.
Delete a Type Parameter with an Empty Parameter List
Delete a Type Parameter with an Empty Parameter List
Type parameters with empty parameter lists are reported as errors, but you have a quick-fix in GoLand to put it right.