You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although a posts metadata has its own package, the post itself live within cmd/render and grows. While having everything within one cmd feels unstructured and semantically hard to read, it would be better to move the posts "business logic" to its own package. Better: rename the metadata package to post and extend it with the struct post from cmd/render. Maybe a second struct RenderedPost is needed.
The text was updated successfully, but these errors were encountered:
Although a posts metadata has its own package, the post itself live within
cmd/render
and grows. While having everything within one cmd feels unstructured and semantically hard to read, it would be better to move the posts "business logic" to its own package. Better: rename themetadata
package topost
and extend it with thestruct post
fromcmd/render
. Maybe a secondstruct RenderedPost
is needed.The text was updated successfully, but these errors were encountered: