Documentation ¶
Index ¶
- func MustNewLocalAsset(t *testing.T, dir, f string) *assetmanager.LocalAsset
- type Asset
- func (a *Asset) Attributes() []html.Attribute
- func (a *Asset) Contents() (string, error)
- func (a *Asset) Debug(d string) bool
- func (a *Asset) ID() string
- func (a *Asset) IsLocal() bool
- func (a *Asset) Media() string
- func (a *Asset) Path() string
- func (a *Asset) String() string
- func (a *Asset) Type() assets.Type
- func (a *Asset) URL() (string, error)
- type Manager
- func (m *Manager) AddLocal(a *assetmanager.LocalAsset)
- func (m *Manager) AddRemote(a *assetmanager.RemoteAsset)
- func (m *Manager) All() []assetmanager.Asset
- func (m *Manager) StaticDir() string
- func (m *Manager) String() string
- func (m *Manager) WithID(id string) map[assets.Type][]assetmanager.Asset
- func (m *Manager) WithType(t assets.Type) []assetmanager.Asset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewLocalAsset ¶
func MustNewLocalAsset(t *testing.T, dir, f string) *assetmanager.LocalAsset
Types ¶
type Asset ¶
type Asset struct { IDReturn string TypeReturn assets.Type MediaReturn string URLReturn string URLError error AttributesReturn []html.Attribute ContentsReturn string ContentsError error IsLocalReturn bool StringReturn string DebugReturn bool PathReturn string }
func (*Asset) Attributes ¶
type Manager ¶
type Manager struct { AllReturn []assetmanager.Asset WithIDReturn map[string](map[assets.Type][]assetmanager.Asset) WithTypeReturn map[assets.Type][]assetmanager.Asset }
func (*Manager) AddLocal ¶
func (m *Manager) AddLocal(a *assetmanager.LocalAsset)
func (*Manager) AddRemote ¶
func (m *Manager) AddRemote(a *assetmanager.RemoteAsset)
func (*Manager) All ¶
func (m *Manager) All() []assetmanager.Asset
Click to show internal directories.
Click to hide internal directories.