func (r *Router) Handler(path string, handler http.Handler) {
	tmpRoute.handler = handler
	tmpRoute.path = path
	r.Handle()
}
Handler sets a handler.
package goblin
import (
	"context"
	"errors"
	"net/http"
)
type Router struct {
	tree *tree
}
type route struct {
	methods     []string
	path        string
	handler     http.Handler
	middlewares middlewares
}
var (
	tmpRoute = &route{}
	ErrNotFound = errors.New("no matching route was found")
	ErrMethodNotAllowed = errors.New("methods is not allowed")
)
func NewRouter() *Router {
	return &Router{
		tree: NewTree(),
	}
}
func (r *Router) Use(mws ...middleware) *Router {
	nm := NewMiddlewares(mws)
	tmpRoute.middlewares = nm
	return r
}
func (r *Router) Methods(methods ...string) *Router {
	tmpRoute.methods = append(tmpRoute.methods, methods...)
	return r
}