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

SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)
This commit is contained in:
xuri 2019-08-14 10:17:29 +08:00 committed by GitHub
commit 3092ce6e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}