Explorar o código

Merge pull request #473 from dolmen-go/cell-Sprint

SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)
xuri %!s(int64=6) %!d(string=hai) anos
pai
achega
3092ce6e54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cell.go

+ 1 - 1
cell.go

@@ -94,7 +94,7 @@ func (f *File) SetCellValue(sheet, axis string, value interface{}) error {
 	case nil:
 		err = f.SetCellStr(sheet, axis, "")
 	default:
-		err = f.SetCellStr(sheet, axis, fmt.Sprintf("%v", value))
+		err = f.SetCellStr(sheet, axis, fmt.Sprint(value))
 	}
 	return err
 }