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

2016-09-18 Thread lochbm
Thank you everyone. On Saturday, September 17, 2016 at 10:50:03 PM UTC+3, loc...@gmail.com wrote: > > Hello everyone, > > I am using Go version 1.7.1 on a 32-bit version of Windows 10 and cannot > view the contents of the address localhost:1234. > I created a server at the aforementioned addres

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 https://groups.google.com/d/op

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 get 404. ...Marv

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

2016-09-17 Thread Dave Cheney
Move http.ListenAndServe to the top of the main() function, outside the http.HandleFunc call and it will work. On Sunday, 18 September 2016 05:50:03 UTC+10, loc...@gmail.com wrote: > > Hello everyone, > > I am using Go version 1.7.1 on a 32-bit version of Windows 10 and cannot > view the content