Files
gomax/v1/core/handler.go
T
2026-10-06 13:40:54 +03:00

14 lines
291 B
Go

package core
import mcontext "github.com/abelith/gomax/v1/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")
}