如何在Golang中生成XLS文件(无XLSX文件)?
我想使用Golang生成.xls
文件。
我找到了一些库,使我可以操纵.xlsx
文件(读取,写作),但这不是我所需要的。另外,我找到了一个库,可以读取.xls
files( https:/https:/ /Github.com/extrame/xls ),但不幸的是,创建此类文件没有功能。所以我的问题是 - 是否有可以帮助我创建.xls
文件的库?或者也许创建此类文件是微不足道的,并且可以在没有任何外部依赖性的情况下完成?
另一件事是,也许我不正确理解.xls
和.xlsx
之间的区别?当我搜索有关.xls
的信息时,Google一般会提供与.xlsx
连接的答案。另外,当我使用.xlsx
的库创建文件时github.com/qax-os/excelize ),我将其保存为.xls
文件,它看起来像是有效的文件。因此,也许这是有效的解决方案(使用.xlsx
库和保存.xls
文件)?
I want to generate .xls
file using golang.
I've found some libraries that allows me to manipulate the .xlsx
files (reading, writing) but it is not what I need. Also, I've found one library that allows to read .xls
files (https://github.com/extrame/xls) but unfortunately it does not have functionality to create such files. So my question is - is there any library which can help me to create the .xls
file? Or maybe creating such file is trivial and can be done without any external dependency?
The other thing is, maybe I do not understand properly the difference between .xls
and .xlsx
? When I search info about .xls
, google in general gives answers connected with .xlsx
. Also, when I created a file using library for .xlsx
(https://github.com/qax-os/excelize) and I've saved it as a .xls
file it looked like valid file. So maybe this is the valid solution (using .xlsx
library and saving .xls
files)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论