&gt; so you wouldn&#x27;t have to write 20 lines of hard to grasp code with bytes.Index(), bytes.HasSuffix(), bytes.TrimRight(), etc., like people do in Go<p>Go has regexps, and a very good implementation at it.<p>Depending on what you do and on the specific code-path, compiling and&#x2F;or executing a regexp might be slower than manually parsing the string. Go standard library is pretty concerned with performance (much more than Python&#x27;s or Ruby&#x27;s, for instance), so it tends to avoid regexps.