From d6c6075558ac8e7bf3745f882806b033f62d256c Mon Sep 17 00:00:00 2001 From: "Alex Lau (AvengerMoJo)" Date: Thu, 25 Jan 2018 22:07:45 +0800 Subject: [PATCH] Add type string to show the different type and value Signed-off-by: Alex Lau (AvengerMoJo) --- diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff.go b/diff.go index 6aa7f74..f7e5034 100644 --- a/diff.go +++ b/diff.go @@ -92,7 +92,7 @@ func (w diffPrinter) diff(av, bv reflect.Value) { at := av.Type() bt := bv.Type() if at != bt { - w.printf("%v != %v", at, bt) + w.printf("%v (type %s) != %v (type %s)", at, at, bt, bt) return }