summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-08-14 10:17:29 +0800
committerGitHub <noreply@github.com>2019-08-14 10:17:29 +0800
commit3092ce6e542bec39135844c4bf45fe22f9e30b7a (patch)
tree5b48393f33a806897662a7f5d9d26586b804fc93
parent9c70d0ac868f66badf2663cc7b4b3c46d5411131 (diff)
parentac395a60ed2ac643403678991ff4745231ff48c5 (diff)
Merge pull request #473 from dolmen-go/cell-Sprint
SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)
-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
}