Creating a core application
In this section, we will create an application using the Go programming language. Throughout the course of this book, this application will evolve and will help us display the features that Compose offers. Go is an open source programming language. Many software applications that we use nowadays are built using Go, including Docker, Kubernetes, and Compose. By programming using Go, we benefit from a robust library providing packages that we need such as http server
, testing utils
, and more.
Installing Go
Installing Go on your workstation is streamlined. By navigating to the download page on https://go.dev/doc/install, you can find installation packages for the major operating systems.
A REST API in Go using Gin
Building a REST API in Go can be done either by using the existing libraries or by using a framework. We will pick the framework option in order to keep our code base simple and keep our focus on Compose. The framework we will use is Gin...