summaryrefslogtreecommitdiff
path: root/picture.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-09-12 15:47:56 +0800
committerxuri <xuri.me@gmail.com>2018-09-12 15:47:56 +0800
commitb4a6e61ec34d4a0db1110907cc969f0d7d38991a (patch)
tree3200bb65c2f0c58ef009c9b151801dc14f16faf0 /picture.go
parent99c9d04f67c0c835b5d884ac229b1883afbb9d03 (diff)
Fix golint errors under confidence 0.1
Diffstat (limited to 'picture.go')
-rw-r--r--picture.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/picture.go b/picture.go
index 97e72a6..decc37d 100644
--- a/picture.go
+++ b/picture.go
@@ -1,3 +1,11 @@
+// Package excelize providing a set of functions that allow you to write to
+// and read from XLSX files. Support reads and writes XLSX file generated by
+// Microsoft Excelâ„¢ 2007 and later. Support save file without losing original
+// charts of XLSX. This library needs Go version 1.8 or later.
+//
+// Copyright 2016 - 2018 The excelize Authors. All rights reserved. Use of
+// this source code is governed by a BSD-style license that can be found in
+// the LICENSE file.
package excelize
import (
@@ -86,10 +94,10 @@ func (f *File) AddPicture(sheet, cell, picture, format string) error {
}
ext, ok := supportImageTypes[path.Ext(picture)]
if !ok {
- return errors.New("Unsupported image extension")
+ return errors.New("unsupported image extension")
}
readFile, err := os.Open(picture)
- if err!=nil{
+ if err != nil {
return err
}
defer readFile.Close()