Skip to content

Commit

Permalink
update gomod and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pzentenoe committed Jun 23, 2023
1 parent 5aeef57 commit 8009066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

func main() {

httpClientCall := client.NewHTTPClientCall(&http.Client{}).Host("https://dummyhost.cl")
httpClientCall := client.NewHTTPClientCall("https://dummyhost.cl", &http.Client{})

headers := http.Header{
client.HeaderContentType: []string{client.MIMEApplicationJSON},
Expand Down Expand Up @@ -76,7 +76,7 @@ type someBodyResponse struct {

func main() {

httpClientCall := client.NewHTTPClientCall(&http.Client{}).Host("https://dummyhost.cl")
httpClientCall := client.NewHTTPClientCall("https://dummyhost.cl", &http.Client{})

headers := http.Header{
client.HeaderContentType: []string{client.MIMEApplicationJSON},
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/pzentenoe/httpclient-call-go

go 1.19
go 1.20

require github.com/stretchr/testify v1.8.0
require github.com/stretchr/testify v1.8.4

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down

0 comments on commit 8009066

Please sign in to comment.