Skip to content

refactor: reorganization of modules #26

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dvrd
Copy link
Contributor

@dvrd dvrd commented Jul 4, 2023

Currently it is a pain testing locally and extending the API due to depending on linking to run the program. (Could be wrong but haven't found a way to test it without building)

The intention is to leave a simple structure that allows extension without much overhead for any maintainer and can introduce some basic tests per module

Changes

  • Moves all cmd module
  • Moves reusable logic to utils module
  • Moves asset loading to assets module
  • Cleans up main

@dvrd
Copy link
Contributor Author

dvrd commented Jul 4, 2023

I understand this is a big change @maaslalani let me know if this is ok with you or you had a different structure in mind

"github.com/spf13/pflag"
"gopkg.in/yaml.v3"
)

func importData(path string, structure *utils.Invoice, flags *pflag.FlagSet) error {
func ImportData(path string, structure *Invoice, flags *pflag.FlagSet) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is switching away from camelCase necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go modules export by case. Uppercase functions get exported, lowercase are private to the module

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.

2 participants