Hi,
Can anyone help me in this case.
I was reading byte data(array of bytes) from another process and converted
that data to string. Now I am trying to replace escape sequences \n with
strings.Replace function but golang not detecting it.
Even I tried with bytes.Replace function but no use.
Also observed even strings.Contains function also not detecting \n.
Eg:
strings.Replace("String1\nString2", "\n", "golang",-1 )
Please help to solve this Issue. Can anyone share any issues with strings
package while after converting bytes to string.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/c3a9e503-e93d-409a-9e6f-a71af29bc8aa%40googlegroups.com.