chore: moved packages to v1
This commit is contained in:
1 parent
522ba1b639
commit
43e3a8a397
15 files changed
+26
-14
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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")
|
||||
}
|
||||
Reference in new issue
Block a user