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

feature: Support configuring the max line length #14

Open
bicyclespokesperson opened this issue Dec 11, 2024 · 0 comments
Open

feature: Support configuring the max line length #14

bicyclespokesperson opened this issue Dec 11, 2024 · 0 comments

Comments

@bicyclespokesperson
Copy link

It would be great to be able to set the MaxLineLength via a parameter to the CompareJson function. Having it hard-coded to 50 is a reasonable default, but some apps have a lot of horizontal space and don't want to wrap the JSON as frequently.

	diff, err := jsonDiff.CompareJSON(json1, json2, nil, false)

I don't know the project well enough to propose an API (Could be a MaxLineLength function parameter, or a settings struct to support more options in a backwards compatible manner). But if someone else suggests a good api, I'm happy to implement this.

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

No branches or pull requests

1 participant