dsfsdf7852 2019-04-24 05:57 采纳率: 100%
浏览 859
已采纳

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

I want Parse byte array of excel data using https://github.com/tealeg/xlsx library in GOLANG. Actully i am getting data from the request(as byte array) to my GRPC server where I have to parse and process it.

I checked library API but it accepts file name as parameter.

"github.com/tealeg/xlsx"

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

Any idea how do I pass byte array directly and process the same.

  • 写回答

2条回答 默认 最新

  • dpitqpax07626 2019-04-24 06:03
    关注

    Got it. Used func OpenBinary(bs []byte) (*File, error)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
  • xurime 2021-12-26 21:04
    关注

    分享一个功能丰富、兼容性好、高性能的专业 Excel 文档基础库 Excelize (https://github.com/xuri/excelize) —— 支持条件格式、数据验证、公式、图表、数据透视表、迷你图、富文本、冻结窗格、流式读写等复杂功能。

    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 Tpad api账户 api口令
  • ¥30 ppt进度条制作,vba语言
  • ¥15 stc12c5a60s2单片机测光敏ADC
  • ¥15 生信simpleaffy包下载
  • ¥15 请教一下simulink中S函数相关问题
  • ¥15 在二层网络中,掩码存在包含关系即可通信
  • ¥15 端口转发器解析失败不知道电脑设置了啥
  • ¥15 Latex算法流程图行号自定义
  • ¥15 关于#python#的问题:我在自己的电脑上运行起来总是报错,希望能给我一个详细的教程,(开发工具-github)
  • ¥40 基于51单片机实现球赛计分器功能