Skip to content

Commit 0a28069

Browse files
committed
FIX: typos
1 parent 9485a29 commit 0a28069

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> An opinionated but extremely easy to use HTTP request client for Go to make JSON request and retrieve the results
44
55
## Description
6-
With this request package you just need to define the structs that correspond to the JSON request and response body. Together with the parameters like URL, method and headers you can directly execute a request with `Do`. If the request body is not of type `io.Reader` already it will be encoded as JSON. Also the response will be decoded back into the struct you provided for the result. Request and reponse body are optional which means they can be `nil`.
6+
With this request package you just need to define the structs that correspond to the JSON request and response body. Together with the parameters like URL, method and headers you can directly execute a request with `Do`. If the request body is not of type `io.Reader` already it will be encoded as JSON. Also the response will be decoded back into the struct you provided for the result. Request and response body are optional which means they can be `nil`.
77
If the request could be made but the response status code was not `2xx` an error of the type `HTTPError` from the package [httperrors](https://github.com/fastbill/go-httperrors) will be returned.
88

99
## Example

request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Params struct {
4949
}
5050

5151
// Do executes the request as specified in the request params
52-
// The reponse body will be parsed into the provided struct
52+
// The response body will be parsed into the provided struct
5353
func Do(params Params, responseBody interface{}) (returnErr error) {
5454
req, err := createRequest(params)
5555
if err != nil {

0 commit comments

Comments
 (0)