Do i need a struct if i just want to grab a document from s3

Hi All,
I wanted to just grab a document from s3 and i dont need to modify any fields. I just need to grab the document and pass it over to a different API.
In that case do i need a struct for the document? if not then what should be the type of this document?
FYI i am going to use GetObject to grab the document.

example: map[string]string work?

It looks to me like GetObject returns the actual data content of the file. If the file contains json, you could unmarshal it into a map[string]string (or map[string]interface{}), but otherwise, you’d need to do something custom to turn it into a map.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.