Go: strings.Split on newline? -
I am trying to do a simple task of dividing the string through new lines.
This does not work:
temp: = strings.Split (result, `\ n`)
Instead 'tried but no luck. / P>
Any thoughts?
you Search for segment on `\ n`, actual "\ n" / code>.
\
, then the n
in the text, and not the new line byte.
Comments
Post a Comment