Building Go Web Applications and Microservices Using Gin
Get familiar with Gin and find out how it can help you reduce boilerplate code and build a request handling pipeline.
Introduction
In this tutorial, you will learn how to build traditional web applications and microservices in Go using the Gin framework. Gin is a framework which reduces boilerplate code that would normally go into building these applications. It also lends itself very well to creating reusable and extensible pieces of code.
This part of the tutorial will help you set up your project and build a simple application using Gin that will display a list of articles and the article details page.
Goals
By the end of this tutorial, you will:
- Learn how to use Gin to build a web application, and
- Understand the parts of a web application written in Go.
Prerequisites
For this tutorial, you will need Go andcurl
installed on your machine.
Note: If you don't have curl
, you can use any other tool that you would normally use to test API end points.