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,
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