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 打包静态资源文件
最新推荐文章于 2024-05-13 20:21:40 发布
【代码】【Go语言】gin + go:embed 打包静态资源文件。
摘要由CSDN通过智能技术生成