package main
import (
"embed"
"github.com/gin-gonic/gin"
"html/template"
"io/fs"
"net/http"
)
var (
//go:embed static/assets/* templates/*
f embed.FS
)
func main()
app := gin.
【Go语言】gin + go:embed 打包静态资源文件
最新推荐文章于 2025-04-13 22:58:56 发布