<?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>Forem: waj0 khan</title>
    <description>The latest articles on Forem by waj0 khan (@waj0_khan_cfb3dae78f81676).</description>
    <link>https://forem.com/waj0_khan_cfb3dae78f81676</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%2F3682063%2F153840a9-394d-480c-982c-33d030e64018.jpg</url>
      <title>Forem: waj0 khan</title>
      <link>https://forem.com/waj0_khan_cfb3dae78f81676</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/waj0_khan_cfb3dae78f81676"/>
    <language>en</language>
    <item>
      <title>Why GoFr is My Go To Framework for Rapid Backend Development in Golang</title>
      <dc:creator>waj0 khan</dc:creator>
      <pubDate>Sun, 28 Dec 2025 03:01:23 +0000</pubDate>
      <link>https://forem.com/waj0_khan_cfb3dae78f81676/why-gofr-is-my-go-to-framework-for-rapid-backend-development-in-golang-kkn</link>
      <guid>https://forem.com/waj0_khan_cfb3dae78f81676/why-gofr-is-my-go-to-framework-for-rapid-backend-development-in-golang-kkn</guid>
      <description>&lt;p&gt;Building production-ready APIs in Go often meant wiring together routers, configs, logs, and health checks from scratch... until I found GoFr.&lt;br&gt;
· Briefly introduce GoFr as an opinionated, batteries-included framework that promotes best practices.&lt;/p&gt;

&lt;p&gt;What Makes GoFr Stand Out&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Built-in Production Essentials: Highlight features that save boilerplate:
· Integrated logging, telemetry (tracing/metrics), and config management.
· Built-in support for databases (SQL &amp;amp; NoSQL), event-driven systems (Kafka, Pub/Sub), and cloud-ready health checks.&lt;/li&gt;
&lt;li&gt;Developer Experience: Mention the CLI tool for scaffolding, the clean project structure, and how it enforces clean separation of concerns.&lt;/li&gt;
&lt;li&gt;Safety &amp;amp; Observability: Emphasize how it bakes in observability (distributed tracing, metrics) and error handling from day one—critical for microservices.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A Quick Taste (Code Snippet)&lt;/p&gt;

&lt;p&gt;Show a simple example, like creating a REST endpoint with structured logging and database access in &amp;lt;10 lines of clean, idiomatic GoFr code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight go"&gt;&lt;code&gt;&lt;span class="c"&gt;// Example: A clean, production-ready handler with logging and DB access&lt;/span&gt;
&lt;span class="k"&gt;func&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ctx&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;gofr&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;interface&lt;/span&gt;&lt;span class="p"&gt;{},&lt;/span&gt; &lt;span class="kt"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Param&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Logger&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Infof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Request received for %s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="n"&gt;greeting&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
    &lt;span class="n"&gt;err&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DB&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;QueryRow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"SELECT 'Hello ' || $1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Scan&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;greeting&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;greeting&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;err&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where GoFr Shines (Use Cases)&lt;/p&gt;

&lt;p&gt;· Rapid prototyping of internal tools/microservices.&lt;br&gt;
· Building observable, cloud-native applications that need to integrate with multiple data sources.&lt;br&gt;
· Teams wanting standardized project structure and reduced "plumbing" code.&lt;/p&gt;

&lt;p&gt;Considerations &amp;amp; When to Look Elsewhere&lt;/p&gt;

&lt;p&gt;· It's opinionated—best for greenfield projects that fit its patterns.&lt;br&gt;
· If you need minimal abstractions or total control over every library, a lighter router might be better.&lt;/p&gt;

&lt;p&gt;Call-to-Action&lt;/p&gt;

&lt;p&gt;· Conclude by stating how GoFr helped you ship faster with more confidence.&lt;br&gt;
· CTA: Encourage readers to try the quickstart, contribute, or join the community.&lt;br&gt;
· Mention the T-Shirt &amp;amp; Stickers offer as a fun incentive: "P.S. The GoFr team is offering cool swag for community contributors—check their site for details!"&lt;/p&gt;

&lt;h1&gt;
  
  
  go #golang #webdev #backend #api #programming #microservices
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>ai</category>
    </item>
    <item>
      <title>Why GoFr is My Go-To Framework for Rapid Backend Development in Golang
Building production-ready APIs in Go often meant wiring together routers, configs, logs, and health checks from scratch... until I found GoFr.</title>
      <dc:creator>waj0 khan</dc:creator>
      <pubDate>Sun, 28 Dec 2025 02:54:57 +0000</pubDate>
      <link>https://forem.com/waj0_khan_cfb3dae78f81676/why-gofr-is-my-go-to-framework-for-rapid-backend-development-in-golang-building-production-ready-2ied</link>
      <guid>https://forem.com/waj0_khan_cfb3dae78f81676/why-gofr-is-my-go-to-framework-for-rapid-backend-development-in-golang-building-production-ready-2ied</guid>
      <description></description>
    </item>
  </channel>
</rss>
