Goodbye Python, Hello Go
Does someone know a ressource where I can easily learn how to switch from Bash to Go?<p>To give some context: When it comes to serious programs I use Go already, but often I just want to code a little script to watch a website for changes for example:<p><pre><code>  #!&#x2F;usr&#x2F;bin&#x2F;env bash
  url=&quot;https:&#x2F;&#x2F;example.com&quot;
  mem=&quot;memory.txt&quot;
  oldsum=&quot;$(cat &quot;$mem&quot;)&quot;
  newsum=&quot;$(curl -sL &quot;$url&quot; | sha512sum)&quot;

  if [ &quot;$oldsum&quot; != &quot;$newsum&quot; ]; then
    xmpp_notify &quot;$url changed&quot;
    echo &quot;$newsum&quot; &gt; &quot;$mem&quot;
  fi
</code></pre>
I haven&#x27;t tried it yet, but in my mind it feels like writing such a program would be more time consuming&#x2F;complex in Go than writing it in bash. Neverthelss, I feel like Go is overall a much better language than Bash (with all those quotes), so I would like to transition to writing more short programs in Go and for that I would like to learn how to do things like reading&#x2F;writing&#x2F;grepping files as easily in Go as I do it in Bash. Any idea if someone wrote some hints together already?