Could someone please give clarification values returned from the goroutine. Does the returned value from the goroutine is getting stored on stake.
example :
FYI: if you try to assign function result to var, like this:
res := go printNumber(i)
you'll get syntax error like this:
prog.go:4:7: syntax error: unexpected go, expecting expression
you can check it out here.