That makes perfect sense as the simple reproducer 
shows: https://play.golang.org/p/vSEBtdV2CzR

Only in this case I didn't see it as there were more go routines alive.

Much appreciated, thank you!

On Monday, April 19, 2021 at 11:29:31 PM UTC+2 Brian Candler wrote:

> As far as I understand it: "go foo(bar, baz)" evaluates all the arguments 
> first, *then* starts a goroutine with function foo(val1, val2)
>
> Since http.ListenAndServe() never returns [unless it fails to start], it 
> never gets as far as starting a goroutine for log.Fatal, and therefore 
> cannot continue to the rest of the code.
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a6a54717-8900-429a-953b-f67cde373fafn%40googlegroups.com.

Reply via email to