diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-10-18 18:42:20 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-10-18 18:42:20 +0800 |
commit | b4ffa8ce48fdddc9b269d254b25e93921b8327f2 (patch) | |
tree | 1670f82eafb5cc024e4f8268c570c8d8833ae854 /cell.go | |
parent | 9b5b74d4801f60daa580fd282ff9fa058bb03385 (diff) |
- Add unsigned integer data type support, related issue #136;
- go test and godoc updated
Signed-off-by: Ri Xu <xuri.me@gmail.com>
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -30,6 +30,11 @@ func (f *File) mergeCellsParser(xlsx *xlsxWorksheet, axis string) string { // int16 // int32 // int64 +// uint +// uint8 +// uint16 +// uint32 +// uint64 // float32 // float64 // string @@ -51,6 +56,16 @@ func (f *File) SetCellValue(sheet, axis string, value interface{}) { f.SetCellInt(sheet, axis, int(value.(int32))) case int64: f.SetCellInt(sheet, axis, int(value.(int64))) + case uint: + f.SetCellInt(sheet, axis, int(value.(uint))) + case uint8: + f.SetCellInt(sheet, axis, int(value.(uint8))) + case uint16: + f.SetCellInt(sheet, axis, int(value.(uint16))) + case uint32: + f.SetCellInt(sheet, axis, int(value.(uint32))) + case uint64: + f.SetCellInt(sheet, axis, int(value.(uint64))) case float32: f.SetCellDefault(sheet, axis, strconv.FormatFloat(float64(value.(float32)), 'f', -1, 32)) case float64: |