diff --git a/unified.go b/unified.go index b7d85cf..96966b5 100644 --- a/unified.go +++ b/unified.go @@ -208,3 +208,8 @@ func (u Unified) Format(f fmt.State, r rune) { } } } + +// Helper to get the stringified diff directly. +func (u Unified) String() string { + return fmt.Sprint(u) +}