files

package
v0.0.0-...-ec177ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 7 Imported by: 0

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

type IndexDot

type IndexDot struct {
	Files        []string
	Destinations []string
}

func (*IndexDot) Sort

func (d *IndexDot) Sort()

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL