Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read an excel file in go? [closed]

Tags:

excel

go

I'm new on the go lang.I want to read an excel file for procees it later, but I don't know how to read the file in go? Anyone can show me an example ?

like image 745
A.C Avatar asked May 03 '13 03:05

A.C


People also ask

How do I view closed Excel files?

To restore your new file without any saved updates, open Microsoft Excel first. Then, click Open on the File tab on the Ribbon. At the bottom of the page, after selecting Recent, click Recover Unsaved Workbooks. You'll then be able to select any unsaved file in the Open window.

How do I read an Excel spreadsheet in Golang?

In golang, Excelize is a library used to read and write Excel files. This package comes with the API for better working with the sheets and it supports various file formats like xlsx, xlsm, etc. Using @latest at the end is to get the latest version for ease.

Can you pull data from a closed Excel file?

Extracting data from a closed file in another workbook is a common request by most of the excel user. They would like to pull or consolidate data from closed files; however, this is not possible.


1 Answers

I haven't tried it but there's an xlsx package.

Install it with

go get -v github.com/tealeg/xlsx

Read the documentation and come back here with some code you've tried if you get stuck.

like image 183
Ask Bjørn Hansen Avatar answered Sep 28 '22 00:09

Ask Bjørn Hansen