h2non / gock

HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
https://pkg.go.dev/github.com/h2non/gock
MIT License
2.09k stars 107 forks source link

Update README to include most up to date version in import & fix JSON body matching example #17

Closed edwinthinks closed 7 years ago

edwinthinks commented 7 years ago

I noticed some inconsistencies in the README. The installation specifies gopkg.in/h2non/gock.v1 but the examples had gopkg.in/h2non/gock.v0. And the JSON body matching example doesn't work as the function should be MatchType("json") not Type("json").

Let me know if missed anything or if you have any suggestions. Thank you 👍

h2non commented 7 years ago

Thank you!