Documentation ¶
Index ¶
- func MustNewLocalAsset(t *testing.T, dir, f string) *assetmanager.LocalAsset
- type Asset
- 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
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 Manager ¶
type Manager struct { AllReturn []assetmanager.Asset WithIDReturn map[string](map[assets.Type][]assetmanager.Asset) WithTypeReturn map[assets.Type][]assetmanager.Asset }
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.