fix: remove limitations

This commit is contained in:
Pedro Pérez 2023-03-20 05:16:32 +01:00
parent d4ba474372
commit 6d87606030

View File

@ -19,7 +19,7 @@ func Convert[T any](bookPath, sheetName string) (dataExcel []T) {
t := new(T) t := new(T)
dataExcel = make([]T, 0, len(rows)-1) dataExcel = make([]T, 0, len(rows)-1)
for _, row := range rows[1:3] { for _, row := range rows[1:] {
v := reflect.ValueOf(t) v := reflect.ValueOf(t)
if v.Kind() == reflect.Pointer { if v.Kind() == reflect.Pointer {
v = v.Elem() v = v.Elem()