Skip to content

feature: Support configuring the max line length #14

@bicyclespokesperson

Description

@bicyclespokesperson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions