diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-01-18 16:05:01 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-01-18 16:05:01 +0800 |
commit | 52796f6e58e95145e2964d0d313a2f721dcc040e (patch) | |
tree | 721e818837035953828c75e102aa7dede7f91492 /file.go | |
parent | f05df2a0182ee5761f5fbe7e56020313a0ab0b61 (diff) |
Format commants, break comments after 80 characters.
Diffstat (limited to 'file.go')
-rw-r--r-- | file.go | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -6,9 +6,11 @@ import ( "os" ) -// CreateFile provide function to create new file by default template. -// For example: -// xlsx := CreateFile() +// CreateFile provides function to create new file by default template. For +// example: +// +// xlsx := CreateFile() +// func CreateFile() *File { file := make(map[string]string) file["_rels/.rels"] = templateRels @@ -25,7 +27,7 @@ func CreateFile() *File { } } -// Save provide function override the xlsx file with origin path. +// Save provides function override the xlsx file with origin path. func (f *File) Save() error { buf := new(bytes.Buffer) w := zip.NewWriter(buf) @@ -51,7 +53,8 @@ func (f *File) Save() error { return err } -// WriteTo provide function create or update to an xlsx file at the provided path. +// WriteTo provides function to create or update to an xlsx file at the provided +// path. func (f *File) WriteTo(name string) error { buf := new(bytes.Buffer) w := zip.NewWriter(buf) |