Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhance scripts/include.go and fix warnings #516

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

apocelipes
Copy link
Contributor

@apocelipes apocelipes commented Sep 27, 2024

Write tmp data to a buffer rather than a temp file. This is faster and robuster.

Fix some golangci-lint warnings.

Fix a miss use of break, a break in a switch only stop the switch statment, to stop the outer for-loop we need a label.

Write tmp data to a buffer rather than a temp file. This is faster and robuster.
@apocelipes apocelipes changed the title Enhance scripts/include.go Enhance scripts/include.go and fix warnings Sep 27, 2024
@boyter boyter merged commit 7f8d760 into boyter:master Sep 29, 2024
5 checks passed
@boyter
Copy link
Owner

boyter commented Sep 29, 2024

Thanks for this.

This was something I was starting to look at actually as id like to remove the need for JSON at all inside the application. This is a good stepping stone to it.

@apocelipes apocelipes deleted the enhance-scripts branch September 30, 2024 05:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants