书栈网 · BookStack 本次搜索耗时 0.012 秒,为您找到 54 个相关结果.
  • 快速入门

    安装 举个栗子 安装 go get github . com / clevergo / clevergo 举个栗子 package main import ( "fmt" "net/http" "github.com/clevergo/clevergo" ) fu...
  • Logging

    Logging middleware is provided by clevergo/middleware , a wrapper of gorilla/handlers . import ( "github.com/clevergo/clevergo" "github.com/clevergo/middleware" ...
  • Logging

    Logging 中間件由 clevergo/middleware 提供。 import ( "github.com/clevergo/clevergo" "github.com/clevergo/middleware" ) m := middleware . Logging ( os . Stdout )...
  • Recovery

    CleverGo provides a built-in recovery middleware. rm := clevergo . Recovery ( true ) // enable debug mode, it writes stack info to log. // rm := clevergo.RecoveryLogger(tru...
  • Recovery

    CleverGo 提供了一個內置的 recovery 中間件。 rm := clevergo . Recovery ( true ) // 開啓調試模式,其會打印 stack 信息到日誌。 // rm := clevergo.RecoveryLogger(true, log.New(out, prefix, flag)) // 指定 Logg...
  • Route Group

    api := router . Group ( "/api" , clevergo . RouteGroupMiddleware ( // middleware for APIs, such as CORS, authenticator, authorization. clevergo . WrapHH ( cors . D...
  • 響應

    Text HTML Render JSON JSONP XML Emit Blob Redirect SendFile 快捷方式 ctx.Response 即 http.ResponseWriter . Text func text ( ctx * clevergo . Context ) error { ...
  • 响应

    Text HTML Render JSON JSONP XML Emit Blob Redirect SendFile 快捷方式 ctx.Response 即 http.ResponseWriter . Text func text ( ctx * clevergo . Context ) error { ...
  • Gzip

    Gzip middleware is provided by NYTimes/gziphandler . import ( "github.com/clevergo/clevergo" "github.com/NYTimes/gziphandler" ) router . Use ( clevergo . Wr...
  • Gzip

    Gzip 中间件由 NYTimes/gziphandler 提供。 import ( "github.com/clevergo/clevergo" "github.com/NYTimes/gziphandler" ) router . Use ( clevergo . WrapHH ( gziphandler...