Skip to content

calebbrown/uweb

Repository files navigation

µweb

A micro web framework for Go.

Build Status

Overview

µweb is a small library designed to simplify the creation of web apps in Go.

It is heavily inspired by the Python library BottlePy.

Note: µweb is currently pre-alpha. The existing API is fairly stable but may change.

Example: Hello World

package main

import (
    "github.com/calebbrown/uweb"
    "fmt"
)

func main() {
    uweb.Route("^hello/(.*)$", func(name string) string {
        return fmt.Sprintf("<b>Hello, %s!</b>!", name)
    })
    uweb.Run("localhost:8080")
}

Copy and paste this code into an editor, save the file as hello.go, in a shell run go run hello.go, then point your browser to localhost:8080/hello/world.

Installation

Make sure you have Go 1.1 installed and $GOPATH is set.

go get github.com/calebbrown/uweb

Documentation

Visit http://godoc.org/github.com/calebbrown/uweb or simply run godoc -http=":6060" after installation and visit localhost:6060/pkg/github.com/calebbrown/uweb.

About

µweb is a micro web framework for go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages