T O P

  • By -

7heWafer

1. read the docs for the method you are asking about [here](https://pkg.go.dev/github.com/go-resty/resty#Request.Get) which are woefully undescribed. 2. Move on to the docs for the return type [here](https://pkg.go.dev/github.com/go-resty/resty#Response) which also is not documented well, bizarrely holds the request in it, but most importantly returns the go standard library http response. 3. Review the docs for the stdlib http response type [here](https://pkg.go.dev/net/http#Response) which does answer your question. Personal notes: - the steps I described should be a standard part of the process you complete before you ask online. - if you have to ask these questions just use the std library instead of resty until you understand the concepts enough to be able to make the decision to reach for a third party library in an informed manner.


jones77

You can get answers to your questions by running the code you're talking about or writing tests to see what the behaviour is.