Overview

Overview

Install

Go route uses go modules which allows easy installation via standart go get command. This simple guide show how to add go route to your …

Quick Start

Create new project. mkdir hello cd ./hello go mod init hello Create main.go file with content. package main import ( …

Middleware

Goroute supports common middleware pattern. In this guide we will use standart goroute middlewares and create new one. Using middleware …

Auto TLS

Go has a great support for HTTPS and Let’s Encrypt certificates. We are going to use autocert package from official golang crypto …

Error Handling

Goroute provides out of the box global error handling. This is possible due to route handler func signature. Each route handler requires …

Logging

TODO

REST API

Goroute has a good support for building restful apis. Full example could be found here. package main import ( "fmt" "log" …