Skip to content

zeekay/zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zip

A zippy web micro-framework. 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.End("hello world!")
    })

    // Run and listen on port 1337.
    zip.Run(":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:

About

A zippy web micro-framework for Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages