Skip to content

Spring cleaning: pkg directory cleaned-up according to convention#58

Merged
Levovar merged 6 commits into
masterfrom
cmd_intro
Mar 13, 2019
Merged

Spring cleaning: pkg directory cleaned-up according to convention#58
Levovar merged 6 commits into
masterfrom
cmd_intro

Conversation

@Levovar
Copy link
Copy Markdown
Collaborator

@Levovar Levovar commented Mar 13, 2019

Pkg directory literally became a dumping ground over time for Golang code.

According to the Golang project layout convention, pkg shall only contain code, which could be re-used by others. So, it was time for a grand spring cleanup!

Stubs and unit tests were moved under test/.
Crd was moved one level higher.
Glide files were moved one level higher.
Main packages of the binaries have moved under cmd/.

This changes enables the proper unit testing, and coverage measurement of functional code which was previously bundled-up in main packages!

@Levovar Levovar merged commit 819e200 into master Mar 13, 2019
@Levovar Levovar deleted the cmd_intro branch March 13, 2019 19:16
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