go-html

A static proxy technology, combined with the Gin framework

1. install

 go get github.com/joey-meng/go-html

2. usage

img.png

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")
}

img_2.png

3.Web

click http://localhost:8080/

img_1.png

GitHub

View Github