diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-01-19 14:05:32 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-01-19 14:05:32 +0800 |
commit | 4a9b39afc634a2399c4729f4fb47c9f290ab1ee5 (patch) | |
tree | 71d673195ccae30d6ef174611f6cf362be7e9133 /excelize.go | |
parent | 52796f6e58e95145e2964d0d313a2f721dcc040e (diff) |
- Add hyperlink and set formula support for cell support;
- Character limits for cells added;
- Update go test and fix typo
Diffstat (limited to 'excelize.go')
-rw-r--r-- | excelize.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/excelize.go b/excelize.go index fed9613..d43f123 100644 --- a/excelize.go +++ b/excelize.go @@ -85,9 +85,13 @@ func (f *File) SetCellInt(sheet string, axis string, value int) { f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } -// SetCellStr provides function to set string type value of a cell. +// SetCellStr provides function to set string type value of a cell. Total number +// of characters that a cell can contain 32767 characters. func (f *File) SetCellStr(sheet string, axis string, value string) { axis = strings.ToUpper(axis) + if len(value) > 32767 { + value = value[0:32767] + } var xlsx xlsxWorksheet col := string(strings.Map(letterOnlyMapF, axis)) row, _ := strconv.Atoi(strings.Map(intOnlyMapF, axis)) |