Skip to content

Enhance scripts/include.go and fix warnings - #516

Merged
boyter merged 1 commit into
boyter:masterfrom
apocelipes:enhance-scripts
Sep 29, 2024
Merged

Enhance scripts/include.go and fix warnings#516
boyter merged 1 commit into
boyter:masterfrom
apocelipes:enhance-scripts

Conversation

@apocelipes

@apocelipes apocelipes commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

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
@boyter

boyter commented Sep 29, 2024

Copy link
Copy Markdown
Owner

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