Documentation ¶
Index ¶
- func DELETE(pattern string, handler context.StupidHandler)
- func GET(pattern string, handler context.StupidHandler)
- func Group(prefix string) *routerGroup
- func POST(pattern string, handler context.StupidHandler)
- func Run(addr string) error
- type StupidMux
- func (mux *StupidMux) DELETE(pattern string, handler context.StupidHandler)
- func (mux *StupidMux) GET(pattern string, handler context.StupidHandler)
- func (group StupidMux) Group(prefix string) *routerGroup
- func (mux *StupidMux) POST(pattern string, handler context.StupidHandler)
- func (mux *StupidMux) Run(address string) error
- func (mux *StupidMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (group StupidMux) Use(middleWares ...context.StupidHandler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DELETE ¶
func DELETE(pattern string, handler context.StupidHandler)
func GET ¶
func GET(pattern string, handler context.StupidHandler)
func POST ¶
func POST(pattern string, handler context.StupidHandler)
Types ¶
type StupidMux ¶
type StupidMux struct {
// contains filtered or unexported fields
}
func NewStupidMux ¶
func NewStupidMux() *StupidMux
func (*StupidMux) DELETE ¶
func (mux *StupidMux) DELETE(pattern string, handler context.StupidHandler)
Click to show internal directories.
Click to hide internal directories.