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

Changed: Backend is now on it's own package #59

Merged
merged 5 commits into from
Sep 29, 2021
Merged

Changed: Backend is now on it's own package #59

merged 5 commits into from
Sep 29, 2021

Conversation

xescugc
Copy link
Member

@xescugc xescugc commented Sep 24, 2021

It was repeated in cost.Backend and terracost.Backend so it's now abstracted to it's own package and used instead of redeclared.

Also did some minor fixes but the main one would be the //go:generate functions that where using go run {pkg} instead of the binary alone, which was not working and it's not how it's suppose to be used either. Also did the same no the Makefile removing all the go run and just used the binary of the lib.

Instead of doing a 'go run' to a repository we directly use the binary.

Also did the same on the Makefile
And renamed the functions to the plural form as those are collections of elements
Instead of true|false use a named variable so it eases the readability of the code
Even if it's the same better use the stdlib definition
Copy link
Contributor

@xlr-8 xlr-8 left a comment

Choose a reason for hiding this comment

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

LGTM

@xescugc xescugc merged commit e5dadb8 into master Sep 29, 2021
@xescugc xescugc deleted the fg-refactors branch September 29, 2021 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants