You can disable this behavior, this link may help:
https://go-review.googlesource.com/c/go/+/21796/
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+u
Thank you David for the detailled answer.
Le samedi 5 octobre 2019 20:48:11 UTC+2, David Finkel a écrit :
>
>
>
> On Thu, Oct 3, 2019 at 11:11 AM Poussier William > wrote:
>
>> Hello
>>
>> The encoding/json package escapes 0xA (line feed), 0xD (carriage return)
>> and 0x9 (horizontal tab) using
On Thu, Oct 3, 2019 at 11:11 AM Poussier William
wrote:
> Hello
>
> The encoding/json package escapes 0xA (line feed), 0xD (carriage return)
> and 0x9 (horizontal tab) using the escape character '\'. However, when it
> comes to 0x8 (backspace) and 0xc (form feed), it uses the Unicode escape
> seq
Hello
The encoding/json package escapes 0xA (line feed), 0xD (carriage return)
and 0x9 (horizontal tab) using the escape character '\'. However, when it
comes to 0x8 (backspace) and 0xc (form feed), it uses the Unicode escape
sequence staring with '\u'.
Reproducer: https://play.golang.org/