Zip

Zippy web framework for Go.

View the Project on GitHubzeekay/zip

zip

A zippy web micro-framwork. Just a tiny bit of sugar for Go's excellent net/http package. Inspired by bottle, express, web.go, etc.

Install

Zip can be installed with go get:

$ go get zeekay.io/zip

Usage

A simple hello world web app looks like this:

package main

import "zeekay.io/zip"

func main() {
    zip.Get("/", func(req zip.Req, res zip.Res) {
        res.WriteString("hello world!")
    })
    zip.Listen(":1337")
}

You can run the server with go run:

$ go run hello.go

Examples

There are a few examples in examples/ for you to play with: