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 "\ n" / code>.

Search for segment on `\ n`, actual \ , then the n in the text, and not the new line byte.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -