Explorar el Código

Use FormattedValue instead of String

Geoffrey J. Teale hace 8 años
padre
commit
ae2b29af61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      read.go

+ 1 - 1
read.go

@@ -104,7 +104,7 @@ func (r *Row) ReadStruct(ptr interface{}) error {
 		}
 		switch field.Type.Kind() {
 		case reflect.String:
-			value, err := cell.String()
+			value, err := cell.FormattedValue()
 			if err != nil {
 				return err
 			}