Guys, In this tutorial I’ll introduce you with an opensource tool that can definitely help you to create awesome API documentation!

API documentation in HTML format

Well, If you are writing REST API and exposing them using HTTP/JSON then there is a good chance you are using Postman to test the debug, test, and create…


The article was originally published in hashnode, here is a copy to reach more audience.

Most often developer needs to consume JSON data from other service and query over them. Querying JSON document is little time-consuming. …


gojsonq (A simple Go package to Query over JSON Data)

Most often developer needs to consume JSON data from other service and query over them. Querying JSON data is little time-consuming. For the last few days, I was working on a package (gojsonq) for Golang to query JSON data easily…


In this article I’ll show you how to render nested HTML template easily in Golang

For this tutorial, I’ll use renderer package to render our HTML template. Lets create a directory tutorial` in your $GOPATH/src . Use go get to install the above-mentioned package.

$ go get github.com/thedevsaddam/renderer/...

Our directory…


Continue if you are a beginner in Go

Screenshot of the app

Generally Go is perfect for building micro services, but it doesn’t mean that trivial MVC app are not easy to build. Go has built-in support for parsing html template, though we are not going to focus on that.

First of all let’s write our go code for serving a html…


Validate Go request data with simple rules and an easy way!

When building REST API or web applications using Go, an essential part is to validate the incoming request data.

I have worked in some small and medium project in Golang, most of them are micro-services, providing restful api. I have used different ways to validate incoming data. …


To understand the uses of factory pattern and singleton pattern in real-life application.

Nowadays we can’t think to write raw sql queries in our applications. Because writing sql queries are boring also you have to think about a lot of security staff all the time.


Make your app concurrent using goroutine and channel

https://github.com/gengo/goship

Goroutine

Goroutine works like the thread in java or any other multi-threading programming language, though the internal concept is different. Goroutine is more lightweight than processor thread. It takes little memory (on average 4~8 KB) than regular thread. Goroutines are managed by thread manager in runtime.

Let’s have a look to…


Defer statement defers the execution of a function until the surrounding function returns. Multiple defers are pushed into stack and executes in Last In First Out (LIFO) order. Defer generally used to cleanup resources like file, database connection etc. Lets see the example below:

Basic understanding of defer

As we…


Start to write your own Microservices today!

https://www.nginx.com/blog/introduction-to-microservices/

Today I’m going to build a simple API for todo application with the golang programming language. I’m going to use golang simplest/fastest framework gin-gonic and a beautiful ORM gorm for our database work. To install these packages go to your workspace $GOPATH/src and run these command below:

$ go get…

Saddam H

Software Engineer, Pathao Inc | Open Source Enthusiast | Love to write elegant code | Gopher by passion | https://thedevsaddam.github.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store