[ANN] go-resty v2.1.0 released - Simple HTTP and REST client library

104 views
Skip to first unread message

Jeevanandam M.

unread,
Oct 10, 2019, 5:09:22 AM10/10/19
to golang-nuts
Hello All -

Stable Version : github.com/go-resty/resty/v2 

Cheers,
Jeeva

Dimas Prawira

unread,
Oct 11, 2019, 4:56:26 PM10/11/19
to Jeevanandam M., golang-nuts
Stable Version : github.com/go-resty/resty/v2 

got 404 (not found)

image.png


--
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 golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/513fdf64-df0d-4c5b-87b4-efd6a36dea22%40googlegroups.com.

Sam Whited

unread,
Oct 11, 2019, 5:02:12 PM10/11/19
to golan...@googlegroups.com


On Fri, Oct 11, 2019, at 20:55, Dimas Prawira wrote:
> Stable Version : github.com/go-resty/resty/v2
>
> got 404 (not found)

That is a Go import line with a module major version suffix, not a
GitHub URL. The fact that they look the same instead of using some other
syntax is extremely annoying, but we're stuck with it, unfortunately.

—Sam

Dimas Prawira

unread,
Oct 11, 2019, 5:25:05 PM10/11/19
to Sam Whited, golang-nuts
Just test using got get

image.png

cheers
Dimas

--
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 golang-nuts...@googlegroups.com.

Sam Whited

unread,
Oct 11, 2019, 5:32:51 PM10/11/19
to Dimas Prawira, golang-nuts
On Fri, Oct 11, 2019, at 21:24, Dimas Prawira wrote:
> Just test using got get

You appear to be using an old version of Go that doesn't support modules
or have it turned off or set to auto using the GO111MODULE environment
variable. If you upgrade to Go 1.13 and make sure GO111MODULE isn't set,
it should default to being on.

https://github.com/go-resty/resty/blob/v2.0.0/go.mod

—Sam

Dimas Prawira

unread,
Oct 11, 2019, 5:50:26 PM10/11/19
to Sam Whited, golang-nuts
Thanks, I'll check it out.

Cheers
Dimas

Jeevanandam M.

unread,
Oct 12, 2019, 2:58:59 AM10/12/19
to golang-nuts
Thank you Sam for responding to the query.

@Dimas - You could use Resty library via go mod as well as without it.

If you would like to use Resty v2, it is exists on master so simple do "go get github.com/go-resty/resty". You will get v2 code base.

If you would like to use it with go mod, you need to have respective go version that supports module feature (https://github.com/go-resty/resty#supported-go-versions) as described in the readme. 

I hope it helps.

- Jeeva
Reply all
Reply to author
Forward
0 new messages