mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
@@ -13,6 +13,7 @@ func main() {
|
||||
router.GET("/home", func(ctx *gin.Context) {
|
||||
ctx.String(200, "Hello Gin!")
|
||||
})
|
||||
|
||||
httpSrv := http.NewServer(http.Address(":8000"))
|
||||
httpSrv.HandlePrefix("/", router)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user