Since Go 1.18, all references to interface{} are now replaced with any. This is now a standard way to use this type and personally, it’s much cleaner to read and write.

For example:

func somefunction(in interface{})

is now

func somefunction(in any)

Reference:

The switch is easy and you can automate in your project directory with

gofmt -r 'interface{} -> any' -w *.go

which will replace all interface{} to any.