Go

Go

Made by DeepSource

Use any instead of interface{} GO-R3001

Anti-pattern
Critical
Autofix

In Go 1.18+, empty interface (interface {}) is recommended to be replaced by any.

Bad practice

func deepsource(n interface{}) { ... }

Recommended

func deepsource(n any) { ... }