fever

package module
v0.0.0-...-eb9771f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2015 License: MIT Imports: 11 Imported by: 3

README

fever

fever is micro framework.

Include

fever contains what was modified the following module

Usage

package main

import (
	"fmt"
	"net/http"
	"time"

	"github.com/mix3/fever"
	"github.com/mix3/fever/mux"
	"golang.org/x/net/context"
)

func main() {
	m := mux.New()
	m.Get("/:name").ThenFunc(func(c context.Context, w http.ResponseWriter, r *http.Request) {
		p := mux.Params(c)
		fmt.Fprintf(w, "Hello %s", p.ByName("name"))
	})
	fever.Run(":19300", 10*time.Second, m)
}
go run examples/simpl/main.go

or

go get github.com/lestrrat/go-server-starter/cmd/start_server
start_server --port 19300 -- go run examples/simple/main.go

LICENSE

  • fever under MIT license
  • chain/* under MIT license
  • mux/* under MPL 2.0 license

see LICENSE.md for details.

Directories

Path Synopsis
examples
tls
This Source Code Form is subject to the terms of the Mozilla Public License, v.
This Source Code Form is subject to the terms of the Mozilla Public License, v.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL