中间件定义好后 必须在main函数中注册才能使用譬如 func main() { goft.Ignite(). Attach(middlewares.NewTokenCheck()). Mount("v1",controllers.NewIndexController()). Launch()}