Re: [go-nuts] Re: The site at localhost:1234 can't be reached.

2016-09-17 Thread Dave Cheney
Yes. The bottom. -- 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. For more options, visit

Re: [go-nuts] Re: The site at localhost:1234 can't be reached.

2016-09-17 Thread Marvin Renich
* Dave Cheney [160917 15:58]: > Move http.ListenAndServe to the top of the main() function, outside the > http.HandleFunc call and it will work. Don't you mean bottom? At the top, the ListenAndServe will not return, so the HandleFunc call will never be made, so you will always