Extract part of string in Golang?
<p>I'm learning Golang so I can rewrite some of my shell scripts.</p>

<p>I have URL's that look like this:</p>

<pre><code>https://example-1.example.com/a/c482dfad3573acff324c/list.txt?parm1=value,parm2=value,parm3=https://example.com/a?parm1=value,parm2=value
</code></pre>

<p>I want to extract the following part:</p>

<pre><code>https://example-1.example.com/a/c482dfad3573acff324c/list.txt
</code></pre>

<p>In a shell script I would do something like this:</p>

<pre><code>echo "$myString" | grep -o 'http://.*.txt'
</code></pre>

<p>What is the best way to do the same thing in Golang, only by using the standard library?</p>