Go + Echo: The Simple Way to Build a Web Server
Building a performant API shouldn't feel like a chore. If you're looking for a simple language that is fun and performant, look no further than go. There are a lot of frameworks for GO but today we...

Source: DEV Community
Building a performant API shouldn't feel like a chore. If you're looking for a simple language that is fun and performant, look no further than go. There are a lot of frameworks for GO but today we will be choosing Echo. TLDR Project Setup: Initializing a Go module Echo Basic: Creating echo instance for route handling with v5 Routing: Handling Get Request Before we begin In this guide, we will not go over how to install and setup go. It's assumed you already have go installed and configured. We are also assuming you know basic Go syntax and how to create a simple hello word program. 1. Project setup To start, we need to initialize a go module in our current working directory. Once you are in a folder where you'd like to build this application, initialize module. go mod init myserver Ideally, you'd put your source code location, for example github.com/[your_username]/[repo_name] but for the sake of simplicity we will be using myserver instead. 2. Echo Basic To use Echo as our framework,