Skip to content

refactor: reorganization of modules#26

Closed
dvrd wants to merge 2 commits intomaaslalani:mainfrom
dvrd:refactor/code
Closed

refactor: reorganization of modules#26
dvrd wants to merge 2 commits intomaaslalani:mainfrom
dvrd:refactor/code

Conversation

@dvrd
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread utils/import.go
)

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

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
Copy Markdown
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

@dvrd dvrd closed this Mar 20, 2026
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