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

allow to Unset field of the message and composite #332

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

alovak
Copy link
Contributor

@alovak alovak commented Oct 26, 2024

With this PR, you will be able to unset the field, mark it as 'not set,' and replace it with a new field instance to avoid any ghost values.

Here is an example of how you can use it, especially when building responses that echo most of the fields:

response, err := request.Clone()
// handle error

err = response.UnsetFields("2", "55.F9F36")
// handle error

@alovak alovak merged commit c352ad7 into master Oct 28, 2024
9 checks passed
@alovak alovak deleted the allow-to-remove-field branch October 28, 2024 15:43
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