14 lines
288 B
Go
14 lines
288 B
Go
package core
|
|
|
|
import mcontext "github.com/abelith/gomax/context"
|
|
|
|
type HandlerFunc func(c *mcontext.Context) error
|
|
|
|
func (h HandlerFunc) HandleUpdate(c *mcontext.Context) error {
|
|
return h(c)
|
|
}
|
|
|
|
func (h HandlerFunc) Use(_ ...Middleware) {
|
|
panic("HandlerFunc.Use must never be called")
|
|
}
|