GO:使用GOLANG中的https://github.com/tealeg/xlsx库解析excel数据的字节数组

问题描述 投票:0回答:1

我想在GOLANG中使用https://github.com/tealeg/xlsx库来解析excel数据的字节数组。实际上我从请求中获取数据(作为字节数组)到我的GRPC服务器,我必须解析并处理它。

我检查了库API,但它接受文件名作为参数。

"github.com/tealeg/xlsx"

func main(){
xlsx.OpenFile("file.xslx")
}

任何想法我如何直接传递字节数组并处理相同的。

arrays excel parsing go
1个回答
0
投票

得到它了。使用的函数OpenBinary(bs [] byte)(*文件,错误)

© www.soinside.com 2019 - 2024. All rights reserved.