Answer the question
In order to leave comments, you need to log in
How to export to xlsx in Go?
On Go, you need to write out the upload in xlsx, the upload is very heavy for an example on the server, such an upload on php eats 60 gigs of RAM. All this needs to be optimized. Advise a Go solution so that it unloads to excel without reading the entire file into memory, but adding new lines.
Answer the question
In order to leave comments, you need to log in
I wouldn't switch from php to go just for this.
It's easier to upload to csv, then convert via libreoffice
https://ask.libreoffice.org/en/question/10411/conv...
It is better to use not xlsx, but csv or even a tab-separated file.
Go has Reader and Writer for such tasks, which do not write and read the entire file at once, in parts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question