Generate Tests for Generic Functions

Use a shortcut to generate test files for your generic functions.

You can now generate tests for functions with generic parameters.

To generate a test for a generic function, click the function, press ⌘⇧T (macOS) / Ctrl+Shift+T (Windows/Linux), and select Test for function from the popup.


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.
Integrated Go Playground
Integrated Go Playground
You can format and share your code, change the Go version, and run your code using the Go playground server.
Convert Empty Interfaces to `any`
Convert Empty Interfaces to `any`
Check and replace empty interfaces that are used as types or type constraints.