Flamego - 图1

Flamego is a fantastic modular Go web framework boiled with dependency injection.

It is the successor of the Macaron, and equips the most powerful routing syntax among all web frameworks within the Go ecosystem.

Installation

The minimum requirement of Go is 1.16.

  1. go get github.com/flamego/flamego

Getting started

  1. package main
  2. import "github.com/flamego/flamego"
  3. func main() {
  4. f := flamego.Classic()
  5. f.Get("/", func() string {
  6. return "Hello, Flamego!"
  7. })
  8. f.Run()
  9. }

Features

Exploring more