summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mengué <dolmen@cpan.org>2019-08-13 15:39:12 +0200
committerOlivier Mengué <dolmen@cpan.org>2019-08-13 15:57:35 +0200
commitac395a60ed2ac643403678991ff4745231ff48c5 (patch)
tree5b48393f33a806897662a7f5d9d26586b804fc93
parent9c70d0ac868f66badf2663cc7b4b3c46d5411131 (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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index f61e268..9d478a5 100644
--- a/cell.go
+++ b/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
}