Skip to content
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

[Post] Create pkg for post logic #64

Open
RaphaelPour opened this issue Aug 2, 2022 · 0 comments
Open

[Post] Create pkg for post logic #64

RaphaelPour opened this issue Aug 2, 2022 · 0 comments

Comments

@RaphaelPour
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant