mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-02 00:13:36 +05:00
Move site files to separate embed.FS
This commit is contained in:
parent
15cd01725b
commit
5d632da771
7 changed files with 217 additions and 207 deletions
15
site.go
Normal file
15
site.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed site/*
|
||||
var siteFS embed.FS
|
||||
|
||||
var stripSiteFS fs.FS
|
||||
|
||||
func init() {
|
||||
stripSiteFS, _ = fs.Sub(siteFS, "site")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue