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

Refactor main.go #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Refactor main.go #51

wants to merge 1 commit into from

Conversation

Xercoy
Copy link

@Xercoy Xercoy commented Oct 21, 2018

As the project matures, main.go is getting a bit large to the point where there are non trivial parts of code which can be grouped together.

What I've done in this change is move the code for the different types of sources into their own file.

While this is the only change I've done, I also think that maybe there could be:

  • a separate file for all the type definitions that are in main.go
  • a separate file for all of the ancillary functions in main.go, ie everything besides the few constants and variables + the Init() and main() functions.

Just a thought. While these are stylistic changes in my opinion, I still think that main.go could benefit from improved organization.

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

Successfully merging this pull request may close these issues.

1 participant