<?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: Sagnick Dey</title>
    <description>The latest articles on DEV Community by Sagnick Dey (@puddinglearner).</description>
    <link>https://dev.to/puddinglearner</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%2F3965122%2F6cd0d79a-47a6-43ff-aae6-4a2499137245.jpg</url>
      <title>DEV Community: Sagnick Dey</title>
      <link>https://dev.to/puddinglearner</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/puddinglearner"/>
    <language>en</language>
    <item>
      <title>Building My First Server in Go</title>
      <dc:creator>Sagnick Dey</dc:creator>
      <pubDate>Tue, 02 Jun 2026 18:34:13 +0000</pubDate>
      <link>https://dev.to/puddinglearner/building-my-first-server-in-go-279n</link>
      <guid>https://dev.to/puddinglearner/building-my-first-server-in-go-279n</guid>
      <description>&lt;p&gt;Coming from a background of full-stack developer , I've always wanted to  explore new languages and their applicational varieties. Go caught my attention quickly as one of most popular languages nowadays. So I decided why not take a look.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  The First Introduction
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
Go is a statically-typed, compiled language , which has  much similarity with C and C++ . So it was not that hard for me to grasp the basic ideas.&lt;br&gt;
I learned about slices , maps , structs, interfaces , error handling  and many more.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating the Server
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
After becoming a bit familiar with Go , with one or two small-scale projects, I decided to jump into the backend development in Go.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Folder structure in Go
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
Backend--&lt;br&gt;
|--cmd   &amp;lt;-- The main file 'main.go' goes here&lt;br&gt;
|--config/config.go&lt;br&gt;
|internal&lt;br&gt;
    |--local.yaml&lt;br&gt;
This is a very basic folder structure i used in this project. I used some in-built and third-party packages for it , like :&lt;br&gt;
--&amp;gt; &lt;a href="https://github.com/ilyakaznacheev/cleanenv" rel="noopener noreferrer"&gt;CleanEnv&lt;/a&gt; for config mapping&lt;br&gt;
--&amp;gt; net/http -- The standard go package to create server, better for learning the internal workings of the server and APIs&lt;br&gt;
--&amp;gt;slog -- for logging&lt;/p&gt;

&lt;p&gt;Learning a Graceful shutdown of a server using GoRoutines and Channels was also amazing application of go concepts. Here are some images of it.&lt;/p&gt;

&lt;p&gt;I think that'll be it for today , i don't want my first post to be very lengthy. Feel free to tell about your experiences of learning Go for the first time . &lt;br&gt;
👋🏻Signing off,&lt;br&gt;
Sagnick&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0nfppjagb210rhvqzxfn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0nfppjagb210rhvqzxfn.png" alt="Creating a server" width="799" height="331"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcisdxgtyyqc9bcb111aq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcisdxgtyyqc9bcb111aq.png" alt="graceful shurdown" width="800" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>backend</category>
      <category>beginners</category>
      <category>go</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
