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

2019-10-12 Thread Jeevanandam M.
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


On Friday, October 11, 2019 at 2:50:26 PM UTC-7, Dimas Prawira wrote:
>
> Thanks, I'll check it out. 
>
> Cheers
> Dimas
>
> On Sat, Oct 12, 2019 at 4:32 AM Sam Whited  > wrote:
>
>> 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
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/37d9f556-d3a3-4728-932d-c54d67a017b4%40googlegroups.com.


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

2019-10-11 Thread Dimas Prawira
Thanks, I'll check it out.

Cheers
Dimas

On Sat, Oct 12, 2019 at 4:32 AM Sam Whited  wrote:

> 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
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2Bp%2BMUeid3NChc0Uc9rB2mGvkujTL%3DYOHnbVg93H5HDC6RfQFw%40mail.gmail.com.


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

2019-10-11 Thread Sam Whited
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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0cab0ea1-d1d1-4121-ac8e-cecb104fd573%40www.fastmail.com.


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

2019-10-11 Thread Sam Whited



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

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c11eb80d-b2df-4793-804f-3017a2e81dca%40www.fastmail.com.