Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assets ¶
type Assets struct {
Files AssetsFS
Statics map[string]AssetInfo
StaticsSenders []func(AssetInfo, http.ResponseWriter, *http.Request)
Index *template.Template
IndexRenderer func(string, map[string]template.HTML, http.ResponseWriter, *http.Request)
// contains filtered or unexported fields
}
type AssetsFS ¶
type AssetsFS interface {
fs.FS
MkdirAll(string, fs.FileMode) error
WriteFile(string, []byte, fs.FileMode) error
Stat(name string) (os.FileInfo, error)
}
func NewInMemAfero ¶
func NewInMemAfero() AssetsFS
type AssetsOption ¶
func WithPrefix ¶
func WithPrefix(pattern, prefix string) AssetsOption
Click to show internal directories.
Click to hide internal directories.