String diff for UUIDs can use strings.Join syntax which makes it more confusingΒ #356
Open
Description
This is a similar topic as #274 and #195, but when using cmp
to diff UUIDs.
When the UUIDs are very different, the output looks like:
ID: strings.Join({
- "e93d2d8b-7d2a-4c62-967a-b189347a4fa2",
+ "7e93c401-4e27-3b83-7edc-2dd0803c39b3",
}, ""),
The strings.Join
adds unnecessary noise here, ideally it would be displayed as:
- ID: "e93d2d8b-7d2a-4c62-967a-b189347a4fa2",
+ ID: "7e93c401-4e27-3b83-7edc-2dd0803c39b3",
However, if the UUIDs have common characters, the output gets really verbose, and isn't particularly useful:
ID: strings.Join({
- "217d",
"6",
- "7ef-d686-4107-ab35-347ed6c91a22",
+ "68416ab-a20e-48ae-afaa-8df7b91a4af3",
}, ""),
Is there a way to avoid this specialized string handling and have it never use the strings.Join
output but show a simpler remove/add for string fields?
Metadata
Assignees
Labels
No labels