A
A
Andrey Astafiev2016-11-04 15:43:50
go
Andrey Astafiev, 2016-11-04 15:43:50

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

3 answer(s)
X
x32net, 2016-11-04
@x32net

ssconvert csv -> xlsx

A
Alexander Taratin, 2016-11-04
@Taraflex

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

A
Alexander Pavlyuk, 2016-11-04
@pav5000

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 question

Ask a Question

731 491 924 answers to any question