<commit_before># µweb

A micro web framework for [go](http://golang.org).

## Installation

    go get github.com/calebbrown/uweb



## Documentation

Visit [http://godoc.org/github.com/calebbrown/uweb](http://godoc.org/github.com/calebbrown/uweb) or simply run `godoc -http=":6060"` after installation.
<commit_msg>Update the readme to make it better.<commit_after># µweb

A micro web framework for [Go](http://golang.org).


## 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](http://bottlepy.org/).

**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](http://localhost:8080/hello/world).


## Installation

    go get github.com/calebbrown/uweb


## Documentation

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

{'fraction_non_alphanumeric': 0.13968668407310705, 'fraction_numerical': 0.018276762402088774, 'mean_word_length': 3.5088235294117647, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7162126', 'n_tokens_mistral': 546, 'n_tokens_neox': 495, 'n_words': 137}