0 Star 1 Fork 0

有点心急 / gotls

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.go 394 Bytes
一键复制 编辑 原始数据 按行查看 历史
有点心急 提交于 2024-05-04 01:31 . 24.05.04
package vue
import (
"net/http"
"github.com/gin-gonic/gin"
)
func Init(router *gin.Engine, urlList []string) {
router.Static("/css", "./dist/css")
router.Static("/img", "./dist/img")
router.Static("/js", "./dist/js")
router.LoadHTMLGlob("./dist/*.html")
for _, url := range urlList {
router.GET(url, func(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", gin.H{})
})
}
}
Go
1
https://gitee.com/ydxj/gotls.git
git@gitee.com:ydxj/gotls.git
ydxj
gotls
gotls
v0.0.7

搜索帮助