Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.03 KB

File metadata and controls

40 lines (28 loc) · 1.03 KB

YAM

Build Status Coverage Docs Licsense

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)
}

Install

go get github.com/thisissoon/yam

Documentaion

Full package documentation can be found at https://godoc.org/github.com/thisissoon/yam.