go-mods / excel

Marshal and Unmarshal Excel file with the help of excelize
MIT License
2 stars 1 forks source link

Marshalling a list of structs doesn't work #1

Open ankit8697 opened 1 week ago

ankit8697 commented 1 week ago

When I try to marshal a list of structs into an excel sheet, it throws this error:

# github.com/go-mods/excel
../../../../../go/pkg/mod/github.com/go-mods/excel@v0.6.1/table.go:168:25: t.Sheet.file.ResizeTable undefined (type *excelize.File has no field or method ResizeTable)
gennesseaux commented 2 days ago

hello,

this is because I have added a function called ResizeTable to excelize which is not merged for the moment. If you don't need the latest version of excelize you can add this line at the end of your go.mod.

replace github.com/xuri/excelize/v2 => github.com/go-mods/excelize/v2 v2.0.0-20231116122542-ce766d7021db