[go-nuts] Re: copy resp.Body to *bytes.Buffer

2021-10-07 Thread 'Ross Light' via golang-nuts
Use io.Copy . Example: https://play.golang.org/p/89KkmplfZ4M -Ross On Thursday, October 7, 2021 at 5:13:17 AM UTC-7 RS wrote: > How can I copy resp.Body to a *bytes.Buffer? > > I am new to go. > resp.Body is the response which I get from client.Do, and is of type

[go-nuts] Re: [go-cloud] What is recommended way to initialize and keep prepared statements in go Lang

2019-04-15 Thread 'Ross Light' via golang-nuts
(+cc golang-nuts, +bcc go-cloud) go-cloud is for the discussion of the Go CDK . This sounds like a more general Go question, so redirecting you over to golang-nuts. -Ross On Mon, Apr 15, 2019 at 12:52 PM Shrinath agarwal wrote: > Hi Team ,I am new in Go lang .I am trying

Re: [go-nuts] Google Cloud Golang SDK authentication

2017-11-27 Thread 'Ross Light' via golang-nuts
Hi Salman, There are broadly two types of authorization on GCP: user accounts and service accounts. User account tokens will act on behalf of a particular end-user, and service account tokens will act on behalf of that service account. I'm not exactly sure which one is right for your applicatio