Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed favicon.svg Favicon []byte //go:embed index.js IndexJS []byte //go:embed index.css IndexCSS []byte //go:embed bootstrap.bundle.min.js BootstrapJS []byte //go:embed bootstrap.min.css BootstrapCSS []byte //go:embed bootstrap-icons.min.css BootstrapIcons []byte //go:embed bootstrap-icons.woff BootstrapIconsWoff []byte //go:embed bootstrap-icons.woff2 BootstrapIconsWoff2 []byte //go:embed manifest.json Manifest []byte //go:embed google-touch-icon.png GoogleTouchIcon []byte //go:embed apple-touch-icon.png AppleTouchIcon []byte )
View Source
var StaticFiles = map[string]struct { Data []byte Name string }{ "favicon.svg": {Name: "favicon.svg", Data: Favicon}, "index.js": {Name: "index.js", Data: IndexJS}, "bootstrap.bundle.min.js": {Name: "bootstrap.bundle.min.js", Data: BootstrapJS}, "bootstrap.min.css": {Name: "bootstrap.min.css", Data: BootstrapCSS}, "bootstrap-icons.min.css": {Name: "bootstrap-icons.min.css", Data: BootstrapIcons}, "bootstrap-icons.woff": {Name: "bootstrap-icons.woff", Data: BootstrapIconsWoff}, "bootstrap-icons.woff2": {Name: "bootstrap-icons.woff2", Data: BootstrapIconsWoff2}, "index.css": {Name: "index.css", Data: IndexCSS}, "manifest.json": {Name: "manifest.json", Data: Manifest}, "google-touch-icon.png": {Name: "google-touch-icon.png", Data: GoogleTouchIcon}, "apple-touch-icon.png": {Name: "apple-touch-icon.png", Data: AppleTouchIcon}, }
Functions ¶
func FileOrBytes ¶
func FileOrBytes(name string, b []byte) io.ReadCloser
func GetFile ¶
func GetFile(name string) io.ReadCloser
func GetIndex ¶
func GetIndex() io.ReadCloser
func StaticFilePath ¶
func StaticFilePath() []string
Types ¶
Click to show internal directories.
Click to hide internal directories.