https://github.com/wagoodman/go-presenter.git
This repo houses a single spot for a presenter abstraction:
type Presenter interface {
Present(writer io.Writer) error
}
I've tended to use this abstraction in multiple projects, but the abstraction itself isn't conceptually coupled to any one project. This allows for a one-stop-shop to use this abstraction without having to redefine it for each project. Why is this abstraction helpful? This abstraction enables a few things:
json.Encoder)