Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Now time to update interface{} usage and shift to any.

  $ gofmt -r 'interface{} -> any' -l **/*.go
Replace -l with -w to write.


Is there an actual difference between these or is it just aesthetic? (and shorter)


any is an alias of interface{}, so purely aesthetic.


well there goes my Hacktoberfest idea




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: