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

Make Patch a method on Differ, so we can specify custom TagName #46

Merged
merged 4 commits into from
Feb 2, 2021

Conversation

j0s
Copy link
Contributor

@j0s j0s commented Feb 1, 2021

When using custom TagName when generating diff, it's useful to be able to also use custom TagName when calling Patch(). I'm not sure if it makes sense to have render*-methods on the Differ instance instead of on the ChangeValue, but at least it accomplishes what I was after. What do you guys think?

@purehyperbole
Copy link
Member

hey @j0s, thanks for the contribution!

The changes look good, happy to merge them as is. I need to do a cleanup of some parts of the codebase (when time permits!), so I'll look to move the render methods over to ChangeValue then if needed.

Thanks again! 😄

@purehyperbole purehyperbole merged commit d6057da into r3labs:v2 Feb 2, 2021
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