Welcome

Package macaron is a high productive and modular web framework in Go. It takes basic ideology of Martiniarrow-up-right and extends in advance.

circle-info

The minimum requirement of Go is 1.6.

Quick Start

To install Macaron:

go get gopkg.in/macaron.v1

The very basic usage of Macaron:

package main

import "gopkg.in/macaron.v1"

func main() {
    m := macaron.Classic()
    m.Get("/", func() string {
        return "Hello world!"
    })
    m.Run()
}

Features

  • Powerful routing with suburl.

  • Flexible routes combinations.

  • Unlimited nested group routers.

  • Directly integrate with existing services.

  • Dynamically change template files at runtime.

  • Allow to use in-memory template and static files.

  • Easy to plugin/unplugin features with modular design.

  • Handy dependency injection powered by injectarrow-up-right.

  • Better router layer and less reflection make faster speed.

Use Cases

Getting More

Last updated

Was this helpful?