Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
slicedbrandy
· 4y ago · 0 comments
Now time to update
interface{}
usage and shift to
any
.
$ gofmt -r 'interface{} -> any' -l **/*.go
Replace -l with -w to write.
Comments
[–]
eatonphil
4y ago
Is there an actual difference between these or is it just aesthetic? (and shorter)
[–]
xiaq
4y ago
any is an alias of interface{}, so purely aesthetic.
[–]
rpk788
4y ago
well there goes my Hacktoberfest idea