-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop google converting strings to numbers (USER_ENTERED vs RAW) #40
Comments
I’m thinking a configuration setting in https://github.com/Iwark/spreadsheet/blob/v2/properties.go |
Yeah, it'd be better to be configurable.
|
Or if we want to put the config including future ones we'll create together, |
Did this ever lead to a PR or anything? I'm looking for this feature also. Also can't find that option to change in the current code. |
In case anybody else is facing this problem, I forked this and made this change and this change to support overriding the default cell type. So you can set Check this spec on the google spreadsheet docs for more information. |
thank you so much! |
This library uses a very sensible
USER_ENTERED
default option for updating cells. There may be times (such as in my current project) where the ability to change this is useful. Currently the default is hardcoded:It is causing some problems for me (i.e an occasional string being represented as a number, which causes formatting and other minor issues)
Can we do a patch to allow this to be altered, what are your thoughts on making it adjustable?
https://developers.google.com/sheets/api/reference/rest/v4/ValueInputOption
The text was updated successfully, but these errors were encountered: