New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render: Presenter #47
Conversation
} | ||
} | ||
|
||
func (p *presenter) RegisterFrom(presenter *presenter, presenters ...*presenter) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This copies Presenter conversion functions from other presenters.. Should we call it .Copy()?
or maybe pass it to NewPresenter() func:
version1 := NewPresenter(version2, versionLatest)
) | ||
|
||
// WithValue is a middleware that sets a given key/value in a context chain. | ||
func WithValue(key interface{}, val interface{}) func(next chi.Handler) chi.Handler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is pretty cool, I like the short-hand
Closing this PR and will open new one against v2. |
Present your data models and/or create API object versioning!