I'm newbie in Golang. I use a link to read xlsx file:
    filePath := "controllers\\foo.xlsx"
xlFile, err := xlsx.OpenFile(filePath)
if err != nil {
    log.Fatal(err)
}
My program run on window os. Thanks in advance.
use this :
    file, fileHeader, err := req.FormFile("theAttachmentfile")
    if err != nil {
      do what you wanna do
    }
    xlsx, err := excelize.OpenReader(file)
    if err != nil {
      do what you wanna do
    }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With