From 66e5d1fa801680f87a647a968fd4965ef9668b9a Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 28 Jun 2017 17:03:20 +0800 Subject: API changed, use `NewFile()` instead of `CreateFile()` and use `SaveAs()` instead of `WriteTo()`. --- picture.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'picture.go') diff --git a/picture.go b/picture.go index da9bb4e..e2c0ff7 100644 --- a/picture.go +++ b/picture.go @@ -47,7 +47,7 @@ func parseFormatPictureSet(formatSet string) *formatPicture { // ) // // func main() { -// xlsx := excelize.CreateFile() +// xlsx := excelize.NewFile() // // Insert a picture. // err := xlsx.AddPicture("Sheet1", "A2", "./image1.jpg", "") // if err != nil { @@ -63,7 +63,7 @@ func parseFormatPictureSet(formatSet string) *formatPicture { // if err != nil { // fmt.Println(err) // } -// err = xlsx.WriteTo("./Workbook.xlsx") +// err = xlsx.SaveAs("./Workbook.xlsx") // if err != nil { // fmt.Println(err) // os.Exit(1) -- cgit v1.2.1