[go-nuts] Re: How to wait for HTTP server to start?

2021-03-28 Thread Hotei
jerome - not sure that the code you provided fully answers the OP's problem. I think you'd need to craft an http request and get a response to really KNOW that the server is indeed responding. If you do that as a replacement for where you have the "select {}" then I think you've got it. Note,

[go-nuts] Re: How to wait for HTTP server to start?

2021-03-27 Thread Jérôme LAFORGE
When I want to ensure that the HTTP server is started (or if I want additional stuff), I do this : https://play.golang.org/p/mX0OsNWFf-f Le samedi 27 mars 2021 à 15:13:40 UTC+1, cpu...@gmail.com a écrit : > The typical Go tutorials pattern for starting a server is something like > > log.Fa