This package provides basic support for routing based on path and method for CoAP server. This library is heavily inspired by mux.
go get github.com/dereulenspiegel/coap-mux
Create a new router with NewRouter()
and add routes with NewRoute()
,
Handle(path, handler)
or Path(string)
. The returned route object can be
configured further.