Browse Source

Use FormattedValue instead of String

Geoffrey J. Teale 8 years ago
parent
commit
ae2b29af61
1 changed files with 1 additions and 1 deletions
  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
 			}