1 Star 2 Fork 0

Eolink/apinto-dashboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
embed.go 265 Bytes
一键复制 编辑 原始数据 按行查看 历史
张泽意 提交于 2022-06-28 23:10 +08:00 . 删除无用代码
package apinto_dashboard
import (
"embed"
"io/fs"
"net/http"
)
//go:embed builds/static
var staticDir embed.FS
func getStaticFiles() http.FileSystem {
files, err := fs.Sub(staticDir, "builds/static")
if err != nil {
panic(err)
}
return http.FS(files)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/eolink_admin/apinto-dashboard.git
git@gitee.com:eolink_admin/apinto-dashboard.git
eolink_admin
apinto-dashboard
apinto-dashboard
main

搜索帮助