title: How can I remove a byte of type []byte
body: <p>I have a variable <code>cmd</code> that returns <code>[50 48 ... 50 53 10]</code></p>
  
  <p>It's possible to remove any bytes of this var? In my case, I want to remove the last byte [10] == LF (Line Feed) to obtain: <code>[50 48 ... 50 53]</code></p>
  
  <p>P.S.: I have not found any similar question because the function <code>bytes.Trim(cmd, "\x10")</code> does not work for me, or maybe, I don't use it fine...</p>