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

Refactoring 09122023 #166

Merged
merged 2 commits into from
Dec 10, 2023
Merged

Refactoring 09122023 #166

merged 2 commits into from
Dec 10, 2023

Conversation

juev
Copy link
Collaborator

@juev juev commented Dec 9, 2023

  • private functions to helpers
  • public functions to gobrew
  • use os variables only on main function
  • setup gobrew with one function
  • setup http client with timeouts

juev added 2 commits December 9, 2023 12:27
- private functions to helpers
- public functions to gobrew
- use os variables only on main function
- setup gobrew with one function
@juev juev requested a review from kevincobain2000 as a code owner December 9, 2023 09:41
Copy link

github-actions bot commented Dec 9, 2023

Summary CoverItUp: kevincobain2000/gobrew

Type master refactoring-09122023
coverage 69.5 % 68.8 % -
go-binary-size 5.8k KB 5.8k KB +
go-mod-dependencies 28 28
go-sec-issues 6 6
build-time 3 sec 3 sec
unit-test-run-time 106 sec 103 sec -

Generated by Cover It Up.
View full report https://coveritup.app/kevincobain2000/gobrew

@@ -73,7 +74,14 @@ func init() {
}

func main() {
gb := gobrew.NewGoBrew()
homeDir, ok := os.LookupEnv("GOBREW_ROOT")
Copy link
Owner

Choose a reason for hiding this comment

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

at some point, it'd be better use a struct for all those config that use env into its own struct and use tags

@kevincobain2000 kevincobain2000 merged commit ac689a5 into master Dec 10, 2023
15 checks passed
@kevincobain2000 kevincobain2000 deleted the refactoring-09122023 branch December 10, 2023 04:17
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