Multi insert best practice

Hi, I need to do insert transactions that contain many rows (usually less than 1000).
In the documentation says the recommended way is to do them in one batch, something like INSERT INTO users ( id, name) VALUES (1, ‘Paul’), (2, ‘Susan’) …

I could do that joining strings, but that way there is a risk of sql injections.

I’m using Golang. ¿what’s the best way to do it?