Can backticks be written in minted?

I have a piece of code I would like to write inside a minted syntax highlighting block. The following code works:

\begin{minted}[linenos]{go}
...

I found what the problem was, although I don't know at all why this is a problem. I was using the package underscore to automatically escape underscores, but this meant that any backtick characters in a \begin{minted} block would cause an error when compiling.