Last active
November 8, 2022 09:54
-
-
Save cp-sumi-k/98977b72ba82213bfde007aa19db30d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://docs.google.com/spreadsheets/d/<SPREADSHEETID>/edit#gid=<SHEETID> | |
spreadsheetId := <SPREADSHEETID> | |
// The A1 notation of cells range to update. | |
range2 := "A1:C1" | |
// prepare data for update cells | |
row := &sheets.ValueRange{ | |
Values: [][]interface{}{{"2", "XYZ", "[email protected]"}}, | |
} | |
// update cells in given range | |
_, err = srv.Spreadsheets.Values.Update(spreadsheetId, range2, row).ValueInputOption("USER_ENTERED").Context(ctx).Do() | |
if err != nil { | |
log.Fatal(err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment