In another project I defined an interface:

```go
type RequestHelper interface {
	Error(err error)
	JSON(int, interface{})
	WriteHeader(int)
}
```

And used that in my handlers instead of `render.Render`, etc.