Skip to content

Commit 46fc51a

Browse files
committed
readme sample code and go mod update
1 parent 9d4440d commit 46fc51a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import "github.com/go-resty/resty"
118118

119119
```go
120120
// Create a Resty Client
121-
client := New()
121+
client := resty.New()
122122

123123
// Fire GET request
124124
resp, err := client.R().EnableTrace().Get("https://httpbin.org/get")

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/go-resty/resty
22

3-
require golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3
3+
require golang.org/x/net v0.0.0-20190311183353-d8887717615a

0 commit comments

Comments
 (0)