Every Golang Coder Needs This

Manpreet Singh
2 min readFeb 29, 2024

Welcome back! Golang is one of the best programming languages out there, so, let’s take a look at a specific library that every single Golang developer should use! This specific library is called Excelize, and it’s a library that allows us to read and write Excel files! Here’s a link to their GitHub page below:

This specific library is a must for Golang developers, this specific library allows us to read and write XLAM/XLSM/XLSX/XLTM/ & XLTX files! To install this library, you can use the following get command:

go get github.com/xuri/excelize

Once installed you are good to go! To create a basic spreadsheet with this library, you can use the following command:

package main

import (
"fmt"

"github.com/xuri/excelize/v2"
)

func main() {
f := excelize.NewFile()
defer func() {
if err := f.Close(); err != nil {
fmt.Println(err)
}
}()
// Create a new sheet.
index, err := f.NewSheet("Sheet2")
if err != nil {
fmt.Println(err)
return
}
// Set value of a cell…

--

--