Files
gomax/core/handler.go
T
2026-10-02 00:48:55 +03:00

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")
}