title: How to print backslash in go?
body: <p>I have the following code snippet:</p>
  
  <pre><code>const byte1 = 0x19;
  const byte2 = 0x45;
  msg := fmt.Sprintf("\\x%x\\x%x message", byte1, byte2)
  log.Info("Learning go fmt", "msg", msg)
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>msg="\\x19\\x45 message"
  </code></pre>
  
  <p>Why is the backslash duplicated? According to this <a href="https://programming.guide/go/fmt-printf-reference-cheat-sheet.html" rel="nofollow noreferrer">website</a>, <code>\\</code> within a format should yield <code>\</code>.</p>