Bunchhieng / hnreader

Open programming news with your favorite browser using command line
https://bunchhieng.github.io/hnreader/
MIT License
7 stars 10 forks source link

Refactor main.go #51

Open Xercoy opened 5 years ago

Xercoy commented 5 years ago

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:

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