<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>learning golang on Suriya's site</title><link>https://subygan.com/tech/practice/golang/</link><description>Recent content in learning golang on Suriya's site</description><generator>Hugo</generator><language>en</language><copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright><item><title>miscelaneous details about golang</title><link>https://subygan.com/tech/practice/golang/misc/</link><pubDate>Mon, 19 Sep 2022 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/practice/golang/misc/</guid><description>&lt;h3 id="go-get-vs-go-install">&lt;code>go get&lt;/code> vs &lt;code>go install&lt;/code>&lt;/h3>
&lt;p>&lt;code>go get&lt;/code>, downloads and adds in GOPATH.
&lt;code>go install&lt;/code>, add&lt;/p>
&lt;h4 id="creating-mutex">creating mutex&lt;/h4>
&lt;p>When embedding a mutex in a struct. any functions associated to the mutex should utilize a pointer receiver.&lt;/p></description></item><item><title/><link>https://subygan.com/tech/practice/golang/README/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/practice/golang/README/</guid><description>&lt;h1 id="learning-golang">learning golang&lt;/h1>
&lt;p>Resources and stuff captured, while learning golang&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-go" data-lang="go">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">package&lt;/span> &lt;span style="color:#a6e22e">main&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">import&lt;/span> (
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	&lt;span style="color:#e6db74">&amp;#34;fmt&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	&lt;span style="color:#e6db74">&amp;#34;math/rand&amp;#34;&lt;/span> 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#960050;background-color:#1e0010">###&lt;/span> &lt;span style="color:#a6e22e">Articles&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#a6e22e">List&lt;/span> &lt;span style="color:#a6e22e">of&lt;/span> &lt;span style="color:#a6e22e">articles&lt;/span> &lt;span style="color:#a6e22e">I&lt;/span> &lt;span style="color:#a6e22e">found&lt;/span> &lt;span style="color:#a6e22e">useful&lt;/span>.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">-&lt;/span> [&lt;span style="color:#a6e22e">https&lt;/span>:&lt;span style="color:#75715e">//nathany.com/good/](https://nathany.com/good/)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">-&lt;/span> &lt;span style="color:#a6e22e">https&lt;/span>:&lt;span style="color:#75715e">//jordanorelli.com/post/32665860244/how-to-use-interfaces-in-go&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">-&lt;/span> &lt;span style="color:#a6e22e">https&lt;/span>:&lt;span style="color:#75715e">//go.dev/blog/error-handling-and-go&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">-&lt;/span> &lt;span style="color:#a6e22e">https&lt;/span>:&lt;span style="color:#75715e">//morsmachine.dk/go-scheduler&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#960050;background-color:#1e0010">###&lt;/span> &lt;span style="color:#a6e22e">Other&lt;/span> &lt;span style="color:#a6e22e">resources&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">-&lt;/span> &lt;span style="color:#a6e22e">gobyexample&lt;/span>.&lt;span style="color:#a6e22e">com&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>benchmarking</title><link>https://subygan.com/tech/practice/golang/benchmarking/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/practice/golang/benchmarking/</guid><description>&lt;p>Benchmarking tools are built-in with the &amp;ldquo;testing&amp;rdquo; package&lt;/p>
&lt;p>These can be done by writing test files of the format &amp;ldquo;&lt;x>_test.go&amp;rdquo;&lt;/p></description></item><item><title>learning golang using go by example</title><link>https://subygan.com/tech/practice/golang/GO_BY_EXAMPLE/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://subygan.com/tech/practice/golang/GO_BY_EXAMPLE/</guid><description>&lt;h1 id="go-by-example">go by example.&lt;/h1>
&lt;p>Following eli bendersky&amp;rsquo;s gobyexample.com tutorial the idea is to capture only things that were not clear in the go tour.&lt;/p></description></item></channel></rss>