diff options
author | Olivier Mengué <dolmen@cpan.org> | 2019-08-13 15:39:12 +0200 |
---|---|---|
committer | Olivier Mengué <dolmen@cpan.org> | 2019-08-13 15:57:35 +0200 |
commit | ac395a60ed2ac643403678991ff4745231ff48c5 (patch) | |
tree | 5b48393f33a806897662a7f5d9d26586b804fc93 | |
parent | 9c70d0ac868f66badf2663cc7b4b3c46d5411131 (diff) |
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>
-rw-r--r-- | cell.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |