diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-02-12 19:03:24 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-02-12 19:03:24 +0800 |
commit | 0833a9d5dab846ed01be52fa59c97ede36ee4a93 (patch) | |
tree | 9daaf8583f716a924aeb108b7255808d811f3e8c /README.md | |
parent | 53564cbe57522467a7e0febd0c9ae4374fa90808 (diff) |
- Improved performance when reading large files, call Token to read tokens one by one instead Unmarshal. Related issue #20 ;
- Fix go test typo;
- Update README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -110,13 +110,18 @@ func main() { } // Insert a picture. err = xlsx.AddPicture("Sheet1", "A2", "/tmp/image1.gif", 0, 0, 1, 1) + if err != nil { + fmt.Println(err) + } // Insert a picture to sheet with scaling. err = xlsx.AddPicture("Sheet1", "D2", "/tmp/image2.jpg", 0, 0, 0.5, 0.5) + if err != nil { + fmt.Println(err) + } // Insert a picture offset in the cell. err = xlsx.AddPicture("Sheet1", "H2", "/tmp/image3.png", 15, 10, 1, 1) if err != nil { fmt.Println(err) - os.Exit(1) } // Save the xlsx file with the origin path. err = xlsx.Save() |