feat: 使用embed将静态资源打包进二进制文件&其他小功能优化

This commit is contained in:
meilin.huang
2022-08-24 20:55:42 +08:00
parent 98a4c92576
commit cf2bc6785c
67 changed files with 1404 additions and 43 deletions

9
server/static/static.go Normal file
View File

@@ -0,0 +1,9 @@
package static
import "embed"
// 使用1.16特性编译阶段将静态资源文件打包进编译好的程序
var (
//go:embed static/**
Static embed.FS
)