Go

Go

Made by DeepSource

Using a deprecated function, variable, constant or field from go/types package GO-W1012

Anti-pattern
Major
Autofix

Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.

Bad practice

_ = types.NewInterface(nil, nil)

Recommended

_ = types.NewInterfaceType(nil, nil)