title: Golang trimPrefix from string "\"
body: <p>I've seen that golang have the function <code>func TrimPrefix(s, prefix string) string</code> which returns s without the provided leading prefix string. </p>
  
  <p>My problem is that I have a string which start with the character "\" (for example "\foo"). When I try to use TrimPrefix I getting an error.</p>
  
  <p>golang code:</p>
  
  <pre><code>var s = "\foo"
      s = strings.TrimPrefix(s, "\")
      fmt.Print(s)
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>./prog.go:10:32: newline in string
  ./prog.go:10:32: syntax error: unexpected newline, expecting comma or )
  </code></pre>
  
  <p>I have seen that it is due to golang understang "\" as the scape character. Do you know if ther is any golang option I can use in order to make golang understand that I don't want to use "\" as the escape character?</p>