Hacker News new | past | comments | ask | show | jobs | submit login

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




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: