SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)

Because that does the same thing, but without having to parse a format
string.

Signed-off-by: Olivier Mengué <dolmen@cpan.org>
This commit is contained in:
Olivier Mengué 2019-08-13 15:39:12 +02:00
parent 9c70d0ac86
commit ac395a60ed
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
}