This sample script is for uploading CSV file as Spreadsheet and modifying permissions using Golang.
I think that the detail information of google-api-go-client is a bit little. The sample scripts are so little. It retrieves most information from only godoc and GitHub. So I publish such sample scripts here. If this is useful for you, I'm glad.
- Give mimeType of file that it wants to upload to
optionsofMedia(r io.Reader, options ...googleapi.MediaOption). - In order to give
options, usegoogleapi.ContentType(). - Give mimeType of file that it wants to convert, when it uploads it to Google Drive, to
fileofCreate(file *File). - In order to give
file, use&drive.File{}.