mirror of
https://github.com/nxshock/promodj.git
synced 2025-07-03 00:03:37 +05:00
Split site to separate files
This commit is contained in:
parent
a0e0b7b1cc
commit
b0f9ea1f49
7 changed files with 108 additions and 10 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