Generics

Generics

Learn about generics in Go.

Rename Generic Receivers Along with a Generic Struct

Tip

Rename Generic Receivers Along with a Generic Struct
Get refactoring support when you rename a generic struct.
Generate Tests for Generic Functions

Tip

Generate Tests for Generic Functions
Use a shortcut to generate test files for your generic functions.
Convert Empty Interfaces to `any`

Tip

Convert Empty Interfaces to `any`
Check and replace empty interfaces that are used as types or type constraints.
Delete a Type Parameter with an Empty Parameter List

Tip

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.
OSZAR »