Skip to content
Forgery is a minimal and flexible Go web application framework, providing a robust set of features for building single and multi-page, web applications.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
reports
.gitignore
.travis.yml
LICENSE
README.md
application.go
application_test.go
methods.go
mocks_test.go
renderer.go
request.go
request_test.go
response.go
response_test.go
route.go
route_test.go
router.go
router_test.go
stackr.go
utils.go

README.md

Forgery

Build Status

STABLE VERSION 1.0: Version 2.x is in development here forgery2

Forgery is a minimal and flexible golang web application framework, providing a robust set of features for building single and multi-page, web applications.

package main

import(
    "github.com/ricallinson/forgery"
)

func init() {
    app := f.CreateServer()
    app.Get("/", func(req *f.Request, res *f.Response, next func()) {
        res.Send("Hello world.")
    })
    app.Listen(3000)
}
  • Built on Stackr
  • Robust routing (almost there)
  • HTTP helpers (redirection, caching, etc)
  • View system supporting 1 template engine (hopefully more will come)
  • Content negotiation
  • Focus on high performance
  • Environment based configuration
  • High test coverage

Testing

The following should all be executed from the forgery directory $GOPATH/src/github.com/ricallinson/forgery/.

Install

go get github.com/ricallinson/simplebdd

Run

go test

Code Coverage

Install

go get github.com/axw/gocov/gocov
go get -u github.com/matm/gocov-html

Generate

gocov test | gocov-html > ./reports/coverage.html

Notes

This project started out as a clone of the superb Node.js library Express.

You can’t perform that action at this time.