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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -