在golang中,如何在xlsx的单元格内输出换行符

在golang中,如何在xlsx的单元格内输出换行符

问题描述:

I am developing in Go language, echo framework.

I am using package "github.com/tealeg/xlsx" and "github.com/Luxurioust/excelize" to create and output xlsx.

After writing in the cell and outputting it, if I set "Wrap text", a newline will be displayed.

But they cannot set "Wrap text" to xlsx in the program.

How can I do in order to see newline when I output it? Or is there a package to solve that problem?

Thanks.

我正在使用Go语言开发,回显框架。 p>

我正在使用 打包“ github.com/tealeg/xlsx”和“ github.com/Luxurioust/excelize”以创建和输出xlsx。 p>

在单元格中写入 并输出后,如果我 设置“自动换行”,将显示换行符。 p>

但是他们不能在程序中将“自动换行”设置为xlsx。 p>

如何 我是为了在输出时看到换行符吗? 还是有解决该问题的软件包? p>

谢谢。 p> div>

"Github.com / tealeg / xlsx"
There is an Alignment type in the field of the Style type,
I found WrapText in an Alignment type field.
If set to true, I could "Wrap Text".