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 save config #43

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

GlottalTrill
Copy link

Mostly linting config.go and getting myself familiar with the code base. Improving how configuration variables are used will make it easier to compartmentalize the other functions into internal modules.

  • Adds comments on variables for future Godoc support
  • Adds basic test on saveConfig
  • Moves setting of defaults to configInit
  • Removes unused function saveTempFile

I generated a few contact sheets but I don't have a comprehensive test suite. That might be the next thing I work on.

These comments can be referenced by godocs in the future.
Start of work to remove code from main(). Also making some default const if they are using in other files.
C was only used in a single function and doesn't need to be exported
It was only being reference in a function that was not being called.
Not the ideal place but gets the code out of main()
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