Skip to content

diff.Diff() with an empty value produces one blank line #22

Open
@thockin

Description

@thockin

I have a series of blobs to diff, each against the previous. The seed is an empty string. Diffing the first blob against that produces a diff with one "removed" line.

-
+{
+  "apiVersion": "v1",
+  "kind": "Service",
+  "metadata": {

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking_changeBreaking change; potential feature for a v2 branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions