go-html
A static proxy technology, combined with the Gin framework
1. install
go get github.com/joey-meng/go-html
2. usage
package main
import (
"embed"
"github.com/gin-gonic/gin"
"github.com/joey-meng/go-html"
)
//go:embed fs
var efs embed.FS
func main() {
r := gin.Default()
r.Use(html.LoadHTMLFs(efs))
r.Run(":8080")
}
3.Web
click http://localhost:8080/