Go

Go

By DeepSource

Use any instead of interface{} GO-R3001

Anti-pattern 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) { ... }