0 votes
in GoLang by
Is it true that short variable declaration := can be used only inside a function?

1 Answer

0 votes
by

Yes. A short variable declaration := can be used only inside a function.

Related questions

0 votes
asked Aug 19, 2022 in GoLang by john ganales
+1 vote
asked Feb 6, 2020 in JavaScript by rajeshsharma
...