未验证 提交 87e40d6b 编写于 作者: T thinkerou 提交者: GitHub

feat: fix lint error (#3050)

上级 b40ded18
...@@ -90,7 +90,12 @@ func TestH2c(t *testing.T) { ...@@ -90,7 +90,12 @@ func TestH2c(t *testing.T) {
r.GET("/", func(c *Context) { r.GET("/", func(c *Context) {
c.String(200, "<h1>Hello world</h1>") c.String(200, "<h1>Hello world</h1>")
}) })
go http.Serve(ln, r.Handler()) go func() {
err := http.Serve(ln, r.Handler())
if err != nil {
fmt.Println(err)
}
}()
defer ln.Close() defer ln.Close()
url := "http://" + ln.Addr().String() + "/" url := "http://" + ln.Addr().String() + "/"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册