nf/handler.go

10 lines
189 B
Go
Raw Normal View History

2024-01-12 19:18:33 +08:00
package nf
import "fmt"
2024-01-12 19:18:33 +08:00
type HandlerFunc func(*Ctx) error
func ToDoHandler(c *Ctx) error {
return c.Status(501).SendString(fmt.Sprintf("%s - %s Not Implemented", c.Method, c.Path()))
}