YAM (Yet Another Mux) is another Golang HTTP multiplexer designed to be simple, flexible and configurable.
package main
import (
"net/http"
"github.com/thisissoon/yam"
)
func main() {
mux := yam.New()
mux.Route("/").Get(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello World!"))
}))
http.ListenAndServe(":5000", mux)
}
go get github.com/thisissoon/yam
Full package documentation can be found at https://godoc.org/github.com/thisissoon/yam.