Skip to content

Remove fmt package and protobuf - #21

Merged
applejag merged 4 commits into
mainfrom
feature/remove-fmt
Jan 31, 2026
Merged

Remove fmt package and protobuf#21
applejag merged 4 commits into
mainfrom
feature/remove-fmt

Conversation

@applejag

Copy link
Copy Markdown
Owner

The fmt package is big. So I added a golangci-lint check to disallow it, and had to write some new utility functions to replace its uses.

I prematurely optimized some parts by trying to do zero-allocation string formatting. Not really necessary, but fun to toy around with!

The protobuf package also depended on fmt (as it used fmt.Errorf) so I had to get rid of that too. I was able to make a very simple file format with just encoding/binary

Changes:

  • Removed protobuf
  • Removed all uses of fmt
  • Added more WASM debug tasks to mise.toml

@github-actions github-actions Bot added go Pull requests that update Go code dependencies Pull requests that update a dependency file labels Jan 31, 2026
@applejag
applejag merged commit 867de1f into main Jan 31, 2026
5 checks passed
@applejag
applejag deleted the feature/remove-fmt branch January 31, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant