<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kyle Morton</title>
    <description>The latest articles on DEV Community by Kyle Morton (@kmorton1988).</description>
    <link>https://dev.to/kmorton1988</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F662756%2F80d69df4-3bcb-4963-a7ef-cf71ce8c315d.jpeg</url>
      <title>DEV Community: Kyle Morton</title>
      <link>https://dev.to/kmorton1988</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kmorton1988"/>
    <language>en</language>
    <item>
      <title>Explain setting up a Golang Dev Environment Like I'm Five</title>
      <dc:creator>Kyle Morton</dc:creator>
      <pubDate>Wed, 21 Jul 2021 02:50:45 +0000</pubDate>
      <link>https://dev.to/kmorton1988/explain-setting-up-a-golang-dev-environment-like-i-m-five-14hb</link>
      <guid>https://dev.to/kmorton1988/explain-setting-up-a-golang-dev-environment-like-i-m-five-14hb</guid>
      <description>&lt;p&gt;I &lt;em&gt;cannot&lt;/em&gt; for the life of me find any consistent, standardized, up-to-date methodology or organization for starting, maintaining, or importing projects. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What's your dev environment look like? &lt;/li&gt;
&lt;li&gt;What's your tooling look like? &lt;/li&gt;
&lt;li&gt;What does your file structure look like? &lt;/li&gt;
&lt;li&gt;Do you use a "main.go"?&lt;/li&gt;
&lt;li&gt;Do you have one master folder for &lt;em&gt;all&lt;/em&gt; your go projects?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the biggest hindrances I've experienced trying to get into Golang is simply &lt;em&gt;starting to code&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;Python is easy enough to set up and zombify scripts that serve my purpose&lt;/p&gt;

&lt;p&gt;JavaScript is easy enough to incorporate into HTML. &lt;/p&gt;

&lt;p&gt;Node.JS is simple enough to get basic apps running/listening on port 3000. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Why is it so difficult (for me, at least) to get a simple golang project started?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here's where I'm at now: &lt;/p&gt;

&lt;p&gt;using Vagrant to host ubuntu 2004 locally, and using VSCode to SSH into it locally. &lt;/p&gt;

&lt;p&gt;I've got go bin installed (/usr/local/go)&lt;br&gt;
I've got that location added to my $PATH. &lt;br&gt;
I have $GOPATH configured to &lt;code&gt;/home/vagrant/go&lt;/code&gt;&lt;br&gt;
I have &lt;code&gt;$GOPATH/bin&lt;/code&gt; &lt;em&gt;also&lt;/em&gt; added to my $PATH. &lt;/p&gt;

&lt;p&gt;structure of &lt;code&gt;/home/vagrant/go&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3zrnip2b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://shr.mort.cc/07KKl200a21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3zrnip2b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://shr.mort.cc/07KKl200a21.png" alt="file-structure-of-go-folder"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is there an "initiate" or "initialize" command within Go to create additional structure from here? &lt;/p&gt;

&lt;p&gt;If I end up using the &lt;code&gt;https://github.com/user/project-name&lt;/code&gt; structure to build out my project, does that repository need to &lt;em&gt;already exist&lt;/em&gt;? &lt;/p&gt;

&lt;p&gt;Is there any SOP's for this? any documentation I should read or community space I should involve myself in that discusses this kind of thing? &lt;/p&gt;

&lt;p&gt;Sorry, lot's of data and questions here, but jeeeeeze. I love the idea of Golang, and have attempted to start learning it several times, and each time, I get stuck at the stupidest part: setting up my dev environment. &lt;/p&gt;

&lt;p&gt;WHY!? (oh how I wish the Interrobang was a thing)&lt;/p&gt;

</description>
      <category>explainlikeimfive</category>
    </item>
  </channel>
</rss>
