diff --git a/exceltostruct.go b/exceltostruct.go index 94c1872..26810a9 100644 --- a/exceltostruct.go +++ b/exceltostruct.go @@ -6,7 +6,7 @@ import ( "strconv" ) -func convert[T any](bookPath, sheetName string) (dataExcel []T) { +func Convert[T any](bookPath, sheetName string) (dataExcel []T) { f, _ := excelize.OpenFile(bookPath) rows, _ := f.GetRows(sheetName)