Iwark / spreadsheet

Google Go (golang) library for reading and writing spreadsheet files on Google Docs.
MIT License
382 stars 53 forks source link

How can I add a new Sheet ? #36

Closed iamvon closed 5 years ago

iamvon commented 5 years ago

I cannot add a new Sheet to an exist Spreadsheet. I tried add a new Sheet when follow your code: err = service.AddSheet(&spreadsheet, SheetProperties{ Title: "TestAddedSheet", Index: 1, }) But it turned out an error:

cannot use SheetProperties literal (type SheetProperties) as type spreadsheet.SheetProperties in argument to service.AddSheet

iamvon commented 5 years ago

Oh I can fix it simply by use Import declarations for the library, thank you.

Iwark commented 5 years ago

Nice :)