summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-09-02 11:54:52 +0800
committerRi Xu <xuri.me@gmail.com>2016-09-02 11:54:52 +0800
commit192af02a40cc745d967be1c96fcc52569ca8e8df (patch)
tree7350c2c152b6df596759c214705f7a00eb30b573 /lib.go
parent0a0a36bafd160752c2af914ab3bdb1d28665ebe3 (diff)
Format code with golint rules
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib.go b/lib.go
index 27b08e5..9323411 100644
--- a/lib.go
+++ b/lib.go
@@ -11,15 +11,15 @@ import (
"strings"
)
-// ReadZip() takes a pointer to a zip.ReadCloser and returns a
-// xlsx.File struct populated with its contents. In most cases
+// ReadZip takes a pointer to a zip.ReadCloser and returns a
+// xlsx.File struct populated with its contents. In most cases
// ReadZip is not used directly, but is called internally by OpenFile.
func ReadZip(f *zip.ReadCloser) ([]FileList, error) {
defer f.Close()
return ReadZipReader(&f.Reader)
}
-// ReadZipReader() can be used to read an XLSX in memory without
+// ReadZipReader can be used to read an XLSX in memory without
// touching the filesystem.
func ReadZipReader(r *zip.Reader) ([]FileList, error) {
var fileList []FileList
@@ -34,7 +34,7 @@ func ReadZipReader(r *zip.Reader) ([]FileList, error) {
}
// Read XML content as string and replace drawing property in XML namespace of sheet
-func readXml(files []FileList, name string) string {
+func readXML(files []FileList, name string) string {
for _, file := range files {
if file.Key == name {
return strings.Replace(file.Value, "<drawing r:id=", "<drawing rid=", -1)