<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Golang on Janusworx</title><link>https://janusworx.com/tags/golang/</link><description>Recent content in Golang on Janusworx</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>feedback@janusworx.com (Mario Jason Braganza)</managingEditor><webMaster>feedback@janusworx.com (Mario Jason Braganza)</webMaster><copyright>© 2026, Mario Jason Braganza</copyright><lastBuildDate>Sun, 23 Feb 2025 08:46:58 +0530</lastBuildDate><atom:link href="https://janusworx.com/tags/golang/index.xml" rel="self" type="application/rss+xml"/><item><title>2025-02-23 Notes</title><link>https://janusworx.com/nm/2025-02-23/</link><pubDate>Sun, 23 Feb 2025 08:46:58 +0530</pubDate><author>feedback@janusworx.com (Mario Jason Braganza)</author><guid>https://janusworx.com/nm/2025-02-23/</guid><description>
&lt;h2 class="relative group"&gt;Goals
 &lt;div id="goals" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#goals" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;ReDerb. Start very slowly&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style='margin-left: auto; margin-right: auto; margin-bottom: 40px; margin-top: 50px; width:100px; border: none; background-color:rgb(238, 238, 238); color: rgb(238, 238, 238); height: 1px;'/&gt;


&lt;h3 class="relative group"&gt;2025-02-23 08:50
 &lt;div id="2025-02-23-0850" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2025-02-23-0850" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Try and do stuff slowly. Still half asleep&lt;/li&gt;
&lt;li&gt;Shower thought. Here’s why it makes no sense for me (or anyone else) to compare myself to others success or measure myself by the progress they make / effort they are able to put in.&lt;br&gt;
It all boils down to, They’re not me and I’m not them.&lt;br&gt;
Time, Effort, Intensity. My life, what i can do, how much energy I can put into doing it. These probably are in my control in the sense of how much I can give. But I need to realise that what I can give, varies. Other people can probably give more, because of two other factors. Luck and Privilege. And those are not in my control. So folks are not inherently better or superior than you or me.&lt;br&gt;
So what I need to do, is give whatever I can, the mostest, while also being aware of all the other duties and responsibilities I have. And be aware that my life, my circumstances are different from others.&lt;br&gt;
That gives me peace.&lt;/li&gt;
&lt;li&gt;More expounding on the previous thought, on the effects of what I can give or pay with
&lt;ul&gt;
&lt;li&gt;No money, means giving time, which means stuff takes longer than other folks.&lt;/li&gt;
&lt;li&gt;to speed it up, I can be more intense, which means giving up other things (that may be as, or more important.) Intensity also takes a toll on the body. (slipped discs at three different portions along my spine, have proven that to me 😂) So Intensity has a cost.&lt;/li&gt;
&lt;li&gt;Which brings us back to money. That is the most fungible resource, which is ofcourse why the “rich” favour it. (and also why, when some “rich” new client demands something outrageous of me, I now tend to price them out of my life, by demanding they pay in the same currency as they demand of me. Time and intensity&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt;)&lt;/li&gt;
&lt;li&gt;So spend money when you can. And when you don’t have it, consider if whatever big thing you are attempting, is worth the time and sacrifice you are about to make. If not, temper them. Bind them with limited time, or lower intensity. Realise that everything has a cost.&lt;/li&gt;
&lt;li&gt;The best things in life aren’t priceless. They are paid for with your time and attention. Spend them wisely.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 class="relative group"&gt;ReDerb
 &lt;div id="rederb" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#rederb" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Referring back to books to learn more about packages and such&lt;/li&gt;
&lt;li&gt;Redid the rederb directory.&lt;/li&gt;
&lt;li&gt;Eli Benderski’s post on creating a &lt;a href="https://eli.thegreenplace.net/2019/simple-go-project-layout-with-modules/" target="_blank" rel="noreferrer"&gt;Go project layout with modules&lt;/a&gt; is very instructional and beyond awesome&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 class="relative group"&gt;2025-02-23 21:15
 &lt;div id="2025-02-23-2115" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2025-02-23-2115" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Reviewed the week and created a plan.&lt;/li&gt;
&lt;li&gt;Schedule, shutdown, complete&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;hr style='margin-left: auto; margin-right: auto; margin-bottom: 40px; margin-top: 50px; width:100px; border: none; background-color:rgb(238, 238, 238); color: rgb(238, 238, 238); height: 1px;'/&gt;

Feedback on this post?&lt;br&gt;
Mail me at &lt;a href="mailto:feebdback@janusworx.com?subject=%22Feedback on post: 2025-02-23 Notes
%22" &gt;feedback at this domain&lt;/a&gt;.
&lt;br&gt;

&lt;br&gt;

P.S. Subscribe to my &lt;a href="https://janusworx.com/subscribe/" target="_blank" rel="noreferrer"&gt;mailing list!&lt;/a&gt;&lt;br&gt;
Forward these posts and letters to your friends and get them to subscribe!&lt;br&gt;
P.P.S. Feed my &lt;a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share" target="_blank" rel="noreferrer"&gt;insatiable reading habit.&lt;/a&gt;&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;One easy example, Urgent calls late at night, are met by me calling them early in the morning. Obviously something must have been that urgent, otherwise they wouldn’t have tried calling me at such an hour.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:2"&gt;
&lt;p&gt;I also realise that this is my privilege. A hard earned one, after twenty years in the business, at that.&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description></item><item><title>Quick Fix: Go Mod File Not Found in Current Directory</title><link>https://janusworx.com/work/quick-fix-go-mod-file-not-found-in-current-directory/</link><pubDate>Wed, 15 Mar 2023 19:11:11 +0530</pubDate><author>feedback@janusworx.com (Mario Jason Braganza)</author><guid>https://janusworx.com/work/quick-fix-go-mod-file-not-found-in-current-directory/</guid><description>&lt;p&gt;As I have begun learning Go (or &lt;code&gt;golang&lt;/code&gt; as I needed to use for searching on the web), I’ve been running into some sort of chasm that the Go language seems to have crossed&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt; that my old textbook obviously could not have foreseen when it was published.&lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The book asks me to do a &lt;code&gt;go run .&lt;/code&gt; to get my file to compile and run.&lt;br&gt;
Go seems to having none of it.&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;go: go.mod file not found in current directory or any parent directory; see &amp;#39;go help modules&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Some searching on the web, and I found setting the &lt;code&gt;GO111MODULE&lt;/code&gt; environment variable to &lt;code&gt;auto&lt;/code&gt; or &lt;code&gt;off&lt;/code&gt; will do the trick. So …&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;GO111MODULE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;auto&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;did indeed do the trick.&lt;/p&gt;
&lt;p&gt;I’m not putting this in my &lt;code&gt;.bashrc&lt;/code&gt; to make it persistent though. The Go folks must have had some reason to make this change, which I’m (currently) not aware of. Was it architectural? Security related? That is a web search for another day.&lt;/p&gt;
&lt;p&gt;Right now the code compiles and I must be off to my next exercise.&lt;/p&gt;
&lt;p&gt;&lt;hr style='margin-left: auto; margin-right: auto; margin-bottom: 40px; margin-top: 50px; width:100px; border: none; background-color:rgb(238, 238, 238); color: rgb(238, 238, 238); height: 1px;'/&gt;

Feedback on this post? Mail me at &lt;a href="mailto:&amp;amp;#102;&amp;amp;%23101;&amp;amp;%23101;&amp;amp;%23100;&amp;amp;%2398;&amp;amp;%2397;&amp;amp;%2399;&amp;amp;%23107;&amp;amp;%2364;&amp;amp;%23106;&amp;amp;%2397;&amp;amp;%23110;&amp;amp;%23117;&amp;amp;%23115;&amp;amp;%23119;&amp;amp;%23111;&amp;amp;%23114;&amp;amp;%23120;&amp;amp;%2346;&amp;amp;%2399;&amp;amp;%23111;&amp;amp;%23109;" &gt;feedback@janusworx.com&lt;/a&gt;
&lt;br&gt;

&lt;br&gt;

P.S. Subscribe to my &lt;a href="https://janusworx.com/subscribe/" target="_blank" rel="noreferrer"&gt;mailing list!&lt;/a&gt;&lt;br&gt;
Forward these posts and letters to your friends and get them to subscribe!&lt;br&gt;
P.P.S. Feed my &lt;a href="https://www.amazon.in/hz/wishlist/ls/2QAUKHHAMOOVS?ref_=wl_share" target="_blank" rel="noreferrer"&gt;insatiable reading habit.&lt;/a&gt;&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;I’m using v1.20.1&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:2"&gt;
&lt;p&gt;I’m learning from Packt’s, The Go Workshop (Delio D’Anna et al), 2019&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description></item></channel></rss>