As Tamas said, reuse the client.

Just make the client into a global variable.


On Sunday, 27 May 2018 11:29:47 UTC+1, Vadim Lesich wrote:
>
> Do you have an example?
>
> воскресенье, 27 мая 2018 г., 8:39:50 UTC+3 пользователь Tamás Gulácsi 
> написал:
>>
>> Just reuse the created http.Client.
>
>

-- 
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/optout.

Reply via email to