-
Notifications
You must be signed in to change notification settings - Fork 39
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
Use methods when there is state. Removed dead code. Default to not export. #16
Conversation
…he package. Converted some functions to be methods.
* upstream/master: Adhere to Go standards. Short options where it makes sense.
Some extra context/information: I've mainly opened this PR for discussion. Tests pass but I've not ran any integration tests. Have opened #17 for adding some. |
* Can be more compact when only checking for error * Update doco to reflect method / function renaming * Fmt * Refactor GetAllSecrets into a method
…in and into package.
Really need to break this into pieces, it is really hard for me to review in it's current state.
Again i would love it if you could break these up. |
Cool. this was me being stuck in an airplane and getting a little carried away. I'll break this up into a few PRs so it's a little more manageable. |
@ojongerius no problem at all, totally understand the feeling. I was tempted to cherry pick but would prefer you just undid the commits and broke it up into bite size chunks to preserve your contributions. Thanks again. |
There is a fair amount of getting both values and errors, followed by passing those values to another function.
While going through the code I stumbled on some dead code, which I removed. I also moved the zone helper function out of main (as you planned on doing), and renamed functions that were not used outside of the package to not be exported.