Documentation ¶
Index ¶
- type Asset
- type LocalAsset
- func (l *LocalAsset) Attributes() []html.Attribute
- func (l *LocalAsset) Contents() (string, error)
- func (l *LocalAsset) Debug(d string) bool
- func (l *LocalAsset) ID() string
- func (l *LocalAsset) IsLocal() bool
- func (l *LocalAsset) Media() string
- func (l *LocalAsset) Path() string
- func (l *LocalAsset) String() string
- func (l *LocalAsset) Type() assets.Type
- func (l *LocalAsset) URL() (string, error)
- func (l *LocalAsset) UpdatePath(p string)
- type Manager
- type RemoteAsset
- func (r *RemoteAsset) Attributes() []html.Attribute
- func (r *RemoteAsset) Contents() (string, error)
- func (r *RemoteAsset) Debug(d string) bool
- func (r *RemoteAsset) ID() string
- func (r *RemoteAsset) IsLocal() bool
- func (r *RemoteAsset) Media() string
- func (r *RemoteAsset) String() string
- func (r *RemoteAsset) Type() assets.Type
- func (r *RemoteAsset) URL() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalAsset ¶
type LocalAsset struct {
// contains filtered or unexported fields
}
func NewLocalAsset ¶
func NewLocalAsset(relDir, assetPath string) (*LocalAsset, error)
func (*LocalAsset) Attributes ¶
func (l *LocalAsset) Attributes() []html.Attribute
func (*LocalAsset) Contents ¶
func (l *LocalAsset) Contents() (string, error)
func (*LocalAsset) Debug ¶
func (l *LocalAsset) Debug(d string) bool
func (*LocalAsset) ID ¶
func (l *LocalAsset) ID() string
func (*LocalAsset) IsLocal ¶
func (l *LocalAsset) IsLocal() bool
func (*LocalAsset) Media ¶
func (l *LocalAsset) Media() string
func (*LocalAsset) Path ¶
func (l *LocalAsset) Path() string
func (*LocalAsset) String ¶
func (l *LocalAsset) String() string
func (*LocalAsset) Type ¶
func (l *LocalAsset) Type() assets.Type
func (*LocalAsset) URL ¶
func (l *LocalAsset) URL() (string, error)
func (*LocalAsset) UpdatePath ¶
func (l *LocalAsset) UpdatePath(p string)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddLocal ¶
func (m *Manager) AddLocal(a *LocalAsset)
func (*Manager) AddRemote ¶
func (m *Manager) AddRemote(a *RemoteAsset)
type RemoteAsset ¶
type RemoteAsset struct {
// contains filtered or unexported fields
}
func NewRemoteAsset ¶
func (*RemoteAsset) Attributes ¶
func (r *RemoteAsset) Attributes() []html.Attribute
func (*RemoteAsset) Contents ¶
func (r *RemoteAsset) Contents() (string, error)
func (*RemoteAsset) Debug ¶
func (r *RemoteAsset) Debug(d string) bool
func (*RemoteAsset) ID ¶
func (r *RemoteAsset) ID() string
func (*RemoteAsset) IsLocal ¶
func (r *RemoteAsset) IsLocal() bool
func (*RemoteAsset) Media ¶
func (r *RemoteAsset) Media() string
func (*RemoteAsset) String ¶
func (r *RemoteAsset) String() string
func (*RemoteAsset) Type ¶
func (r *RemoteAsset) Type() assets.Type
func (*RemoteAsset) URL ¶
func (r *RemoteAsset) URL() (string, error)
Click to show internal directories.
Click to hide internal directories.