$ go run main.go [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in"debug" mode. Switch to "release" mode in production. - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET / --> main.main.func1 (3 handlers) 2019/11/05 22:49:04 Shutdown Server ... [GIN] 2019/11/05 - 22:49:07 | 200 | 5.0000438s | ::1 | GET / 2019/11/05 22:49:08 Server exiting
Post title:使用Gin如何优雅的停止监听
Post author:洪笳淏
Create time:2021-12-08 19:34:00
Post link:https://jiahaohong1997.github.io/2021/12/08/使用Gin如何优雅的停止监听/
Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.