Hello guys! I started learning Go a few days ago and I’m extremely excited. I would like to ask for help on a concurrent issue that I don’t know how to solve. What would my code look like in this case:
There are four distinct servers named respectively “s1”, “s2”, “s3” and “s4”. I need to implement a function that requests a response to each of these four servers. This function should print the name of the server whose response came first. The server response does not matter, it can be your own name.
Also, I need to do a similar function to this one, however, if the server response takes more than 3 seconds, should print an error message.
Thanks for the attention of everyone, waiting hopefully for help.