gobyexample icon indicating copy to clipboard operation
gobyexample copied to clipboard

Proposal: Add a little more info about short variable declaration

Open slab713 opened this issue 3 years ago • 0 comments

I think it would be helpful if there'd be another sentence about how short variable declaration with := is not possible outside of a function (including main()).

https://gobyexample.com/variables https://go.dev/tour/basics/10

slab713 avatar Aug 29 '22 17:08 slab713