Underscore is technically allowed by RFC 5321 but causes issues with many email systems in practice.
18 lines
209 B
Go
18 lines
209 B
Go
package main
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"net/http"
|
|
)
|
|
|
|
//go:embed all:embed
|
|
var Files embed.FS
|
|
|
|
func FrontendFileSystem() http.FileSystem {
|
|
return http.FS(Files)
|
|
}
|
|
|
|
func FrontendFS() fs.FS {
|
|
return Files
|
|
}
|