Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 696 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 696 Bytes

MUX

GoDoc LICENSE

Installation

The only requirement is the Go Programming Language

go get -u github.com/forgoer/mux

Quick start

package main

import (
    "fmt"
	"http"

	"github.com/forgoer/mux"
)

func main() {
	m := mux.New()
	m.HandleFunc("/", HomeHandler)
	m.HandleFunc("/products", ProductsHandler)
	m.HandleFunc("/articles", ArticlesHandler)
	http.ListenAndServe(":8080", &m)
}