Golang slow performance inside for loop MySQL queries

Thanks for your response. Can you give me an example with the above code? How would you create them with prepared statements? And how can I reuse a single connection?