Versions in this module Expand all Collapse all v0 v0.0.1 Aug 20, 2023 Changes in this version + type AssetInfo struct + Metadata map[string]string + Path string + type Assets struct + Files AssetsFS + Index *template.Template + IndexRenderer func(string, map[string]template.HTML, http.ResponseWriter, *http.Request) + Statics map[string]AssetInfo + StaticsSenders []func(AssetInfo, http.ResponseWriter, *http.Request) + func NewAssets(source fs.FS, sourcePrefix string, assets AssetsFS, opts ...AssetsOption) (*Assets, error) + func (a *Assets) ServeHTTP(w http.ResponseWriter, r *http.Request) + type AssetsFS interface + MkdirAll func(string, fs.FileMode) error + Stat func(name string) (os.FileInfo, error) + WriteFile func(string, []byte, fs.FileMode) error + func NewInMem() AssetsFS + func NewInMemAfero() AssetsFS + type AssetsOption func(*Assets) error + func WithPrefix(pattern, prefix string) AssetsOption