router.go 180 B

123456789
  1. package httpx
  2. import "net/http"
  3. type Router interface {
  4. http.Handler
  5. Handle(method string, path string, handler http.Handler) error
  6. SetNotFoundHandler(handler http.Handler)
  7. }