diff options
author | xuri <xuri.me@gmail.com> | 2021-05-10 00:09:24 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-05-10 00:09:24 +0800 |
commit | be12cc27f1d774154b17763c071e1dc6f91eab8c (patch) | |
tree | d6544c2e33e8aacfb0867e79ffc69fde435d3183 /sheet.go | |
parent | 423bc26d1f87db55bab5704afebf4509269bbc7e (diff) |
This closes #652, new SetColWidth API, support set column width in stream writing mode, and export error message
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -482,7 +482,7 @@ func (f *File) SetSheetBackground(sheet, picture string) error { } ext, ok := supportImageTypes[path.Ext(picture)] if !ok { - return errors.New("unsupported image extension") + return ErrImgExt } file, _ := ioutil.ReadFile(picture) name := f.addMedia(file, ext) |