Popularity
2.1
Stable
Activity
0.0
Stable
22
2
7

Programming language: Go
License: Mozilla Public License 2.0
Tags: Web Frameworks    
Latest version: v0.1.0

Banjo alternatives and similar packages

Based on the "Web Frameworks" category.
Alternatively, view Banjo alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Banjo or a related project?

Add another 'Web Frameworks' Package

README

BANjO

Build Status Software License GoDoc Coverage Status Go Report Card

banjo it's a simple web framework for building simple web applications

Install

$ go get github.com/nsheremet/banjo

Example Usage

Simple Web App - main.go

package main

import "banjo"

func main() {
  app := banjo.Create(banjo.DefaultConfig())

  app.Get("/", func(ctx *banjo.Context) {
    ctx.JSON(banjo.M{"foo":"bar"})
  })

  app.Run()
}

Example responses:

// ... Redirect To
  app.Get("/admin", func(ctx *banjo.Context) {
    ctx.RedirectTo("/")
  })
// ... HTML
  app.Get("/foo", func(ctx *banjo.Context) {
    ctx.HTML("<h1>Hello from BONjO!</h1>")
  })
// ... Return Params as JSON
  app.Post("/bar", func(ctx *banjo.Context) {
    ctx.JSON(banjo.M{
      "params": ctx.Request.Params
    })
    ctx.Response.Status = 201
  })

License

banjo is primarily distributed under the terms of Mozilla Public License 2.0.

See LICENSE for details.


*Note that all licence references and agreements mentioned in the Banjo README section above are relevant to that project's source code only.