As for Golang re to convert the file from *.csv to *.xlsx?

db, err := sql.Open("postgres", fmt.Sprintf("user=%s dbname=%s host=%s sslmode=disable",
 DB_USER, DB_NAME, "/var/run/postgresql"))
 defer db.Close()

 db.Query("Copy (Select * From export) To '/var/www/html/exportGo/export/testt.csv' With CSV DELIMITER ',';")

now the resulting file need to convert to xlsx
July 2nd 19 at 18:03
1 answer
July 2nd 19 at 18:05
You need to go on github and do a search for xlsx. There's a lot of ready golang library for working with xlsx.
For example,
Or even A simple program to convert CSV files into XLSX files.

In General, xlsx is just a format - basically an xml Packed in a zip and zero to do.

Find more questions by tags Go