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

Split main package into multiple subpackages #88

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Oct 24, 2019

This is inspired by #76, but also because I've known for a while that this might eventually be needed. I'm hoping to better isolate code from the main package in the hope/belief that this will make setting up future tests easier and more reliable.

As part of this work, the majority of the existing utility functions had to be renamed to export them for use elsewhere and a few functions had to be updated to accept a Config
object in order to receive application-wide settings. This Config object also (now) bundles a *logrus.Logger for shared use across the application.

I don't know Golang well enough at this point to know whether this is a terrible idea. If you're reading this and you know the answer, please reach out and share.

fixes #87

@atc0005 atc0005 added enhancement New feature or request refactor labels Oct 24, 2019
@atc0005 atc0005 added this to the v0.5.1 milestone Oct 24, 2019
@atc0005 atc0005 self-assigned this Oct 24, 2019
@atc0005 atc0005 force-pushed the i87-split-main-package-into-subpackages branch from c20fa70 to 7c99851 Compare October 24, 2019 17:40
This is inspired by #76, but also because I've known for
a while that this might eventually be needed. I'm hoping
to better isolate code from the main package in the
hope/belief that this will make setting up future tests
easier and more reliable.

As part of this work, the majority of the existing utility
functions had to be renamed to export them for use elsewhere
and a few functions had to be updated to accept a Config
object in order to receive application-wide settings. This
Config object also (now) bundles a `*logrus.Logger` for
shared use across the application.

I don't know Golang well enough at this point to know
whether this is a terrible idea. If you're reading this
and *you* know the answer, please reach out and share.

refs #87, #76
@atc0005 atc0005 force-pushed the i87-split-main-package-into-subpackages branch from 7c99851 to f0445cf Compare October 24, 2019 17:42
@atc0005 atc0005 merged commit 602064e into master Oct 24, 2019
@atc0005 atc0005 deleted the i87-split-main-package-into-subpackages branch October 24, 2019 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split package "main" into multiple sub-packages
1 participant