html模板完结

This commit is contained in:
2025-11-26 16:30:49 +08:00
parent 5b24561c9c
commit a5ea950538
7 changed files with 263 additions and 18 deletions

View File

@@ -70,8 +70,14 @@ func main() {
})
})
r.GET("/test", func(c *gin.Context) {
c.HTML(200, "pages/test", gin.H{
"title": "Test website",
})
})
// 启动HTTP服务器监听在8081端口
err := r.Run(":8081")
err := r.Run(":8088")
if err != nil {
return
}