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
Rename generic receivers along with 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.