diff options
| author | xuri <xuri.me@gmail.com> | 2020-01-03 23:57:25 +0800 |
|---|---|---|
| committer | xuri <xuri.me@gmail.com> | 2020-01-03 23:57:25 +0800 |
| commit | 5ca7231ed408ac264f509ff52b5d28ff4fbda757 (patch) | |
| tree | af91efcb8b83c75c97cb43c9fac442adccfdcd26 /cell_test.go | |
| parent | 5f5ec76740704a8362e5a120b4a3582b409a5fdd (diff) | |
optimize code and comments: use println errors instead of panic
Diffstat (limited to 'cell_test.go')
| -rw-r--r-- | cell_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cell_test.go b/cell_test.go index 1efbc5a..60f8751 100644 --- a/cell_test.go +++ b/cell_test.go @@ -110,7 +110,7 @@ func ExampleFile_SetCellFloat() { f := NewFile() var x = 3.14159265 if err := f.SetCellFloat("Sheet1", "A1", x, 2, 64); err != nil { - fmt.Println(err) + println(err.Error()) } val, _ := f.GetCellValue("Sheet1", "A1") fmt.Println(val) |
