We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码如下非常简单 `func main() { xdaemon.Background(".log", true) r := gin.New() r.Handle("GET", "/test", test) r.Run(":3333") }
func test(ginCtx *gin.Context) { ginCtx.AbortWithStatus(400) }` 步骤 1 、在CMD中执行 test.exe后,显示 启动子进程成功: -> 1600 2、在CMD中键盘ctrl+c 3、pid为1600的子进程已退出
The text was updated successfully, but these errors were encountered:
windows版本编译时加入如下参数就不会退出了: go build -ldflags="-H windowsgui"
Sorry, something went wrong.
No branches or pull requests
代码如下非常简单
`func main() {
xdaemon.Background(".log", true)
r := gin.New()
r.Handle("GET", "/test", test)
r.Run(":3333")
}
func test(ginCtx *gin.Context) {
ginCtx.AbortWithStatus(400)
}`
步骤
1 、在CMD中执行 test.exe后,显示
启动子进程成功: -> 1600
2、在CMD中键盘ctrl+c
3、pid为1600的子进程已退出
The text was updated successfully, but these errors were encountered: