mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
22 lines
277 B
Go
22 lines
277 B
Go
package embedded
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed all:web all:agent
|
|
var assetsFS embed.FS
|
|
|
|
func AssetsFS() fs.FS {
|
|
return assetsFS
|
|
}
|
|
|
|
func WebFS() (fs.FS, error) {
|
|
return fs.Sub(assetsFS, "web")
|
|
}
|
|
|
|
func AgentFS() (fs.FS, error) {
|
|
return fs.Sub(assetsFS, "agent")
|
|
}
|