Merged
Conversation
- Add go.mod for module support - Add shell.nix for Nix-based development environment - Replace deprecated ioutil.ReadAll with io.ReadAll - Fix tests to use & instead of ; as query separator (Go 1.17+ security fix) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Runs build, test, and vet using Nix shell environment. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Uses commit 8c5066250910 instead of channel for deterministic builds. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fails the build if any files are not properly formatted. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Travis CI is no longer active. Update badge to GitHub Actions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add Encoder.OmitEmpty(bool) method that treats all struct fields as if
they had the omitempty tag. This implements the first item from the
Future Work section.
Usage:
form.NewEncoder(w).OmitEmpty(true).Encode(value)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17877a4 to
1b82dad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
Encoder.OmitEmpty(bool)method to treat all struct fields as if tagged withomitempty.This implements the first item from the "Future Work" section in the README.
Usage
Dependencies
This PR depends on #30 (Modernize for Go 1.21+ and add GitHub Actions CI) and should be merged after it.
Test plan
TestEncode_OmitEmptytest covers the featurego vetpassesgofmtcheck passes🤖 Generated with Claude Code