Hello,
I've written a way for you to do it without using anything third-party. You
can access and review from the link. Hope this helps;
Link → https://go.dev/play/p/EAURWpjaaw_o
Best,
7 Mayıs 2023 Pazar tarihinde saat 16:42:54 UTC+3 itibarıyla Wojciech S.
Czarnecki şunları yazdı:
> Dnia 2023
On Thu, 2023-04-27 at 23:02 -0700, Jérôme LAFORGE wrote:
> Hello,
> In my unit tests when expected is not the actual result, I like
> display actual value with Go-syntax. For example:
> if got != expected {
> t.Errorf(" %#v", got) // []string{"blah','blah"}
> }
>
> But it want to know if ther
Hello,
In my unit tests when expected is not the actual result, I like display
actual value with Go-syntax. For example:
if got != expected {
t.Errorf(" %#v", got) // []string{"blah','blah"}
}
But it want to know if there is elegant way to display as formatted on
multi-lines (a kind of inde