Skip to content

Commit

Permalink
Updated timeout example
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Cross committed Aug 5, 2021
1 parent 150697e commit ea1773e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ fmt.Println(countries[0].Region) // empty because this field was not requested

## Configuration

### `SetTimeout()`: the default timeout for the HTTP client is `0` meaning no timeout. Use `SetTimeout()` to override the default timeout, using a time.Duration.
### `SetTimeout()`

The default timeout for the HTTP client is `0` meaning no timeout. Use `SetTimeout()` to override the default timeout, using a time.Duration.

```go
client := restcountries.New()
Expand Down

0 comments on commit ea1773e

Please sign in to comment.