I'm trying to port a tool of mine to use Google Cloud Storage (it presently
only works with S3) and have been using the client API from
However, while the underlying GCS API provides the functionality that I
need via http headers (Specifically I need "Range" and "IfMatch" on getting
object content (re: https://cloud.google.com/storage/docs/reference-headers
)) it appears to be omitted from the go client API and I don't see a way to
specify those fields without changing the library.
It looks like the most consistent way would be to mirror how IfNotMatch was
implemented, which means adding a code to update the headers in:
func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error)
Is there in fact a way to add headers to the request that I'm missing?
Or should I submit an upstream change to add this? (I noticed the
CONTRIBUTING.md has instructions for pushing upstream, but it looks like
it'll take chunk of time to read through and do it properly.)
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.