Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Readme fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Herfray committed Oct 5, 2015
1 parent 5948d8f commit 62d578c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ type APIError struct {
The custom `Render` module is based on the [Render](https://github.com/unrolled/render) package, made more expressive thanks to the coupling with the Zest API error format.

```go
func (r *Render) JSONError(w http.ResponseWriter, status int, apiError *APIError, err error)
func (r *Render) JSONError(w http.ResponseWriter, status int, apiError *APIError, err error){}

func (r *Render) JSON(w http.ResponseWriter, status int, object interface{})
func (r *Render) JSON(w http.ResponseWriter, status int, object interface{}){}
```

When the `JSONError` method is called, the status and the error are automatically copied into the final `APIError` struct so you don't have to worry about that.
Expand Down

0 comments on commit 62d578c

Please sign in to comment.