Functions...https://play.golang.org/p/qhswyvcqKVw


(Cherolyn Lexvold) #1

https://play.golang.org/p/qhswyvcqKVw

In this code, what is “()” and what does it do?


(Yamil Bracho) #2

Do you mean the () in q := foo () and k, m := bar () ?
If so, it means a function call…


(Lutz Horn) #3

Did you take the Go tour?


(Norbert Melzer) #4

At least he was told to do so several times throughout the last ~6 months, even linked to specific sections that would answer his questions.


(Lutz Horn) #5

That’s what I remember, too. This makes me sad.