Documentation ¶
Index ¶
- func SetAssetFS(fs Interface)
- type AssetFileSystem
- func (fs *AssetFileSystem) Asset(name string) ([]byte, error)
- func (fs *AssetFileSystem) Compile() error
- func (fs *AssetFileSystem) Glob(pattern string) (matches []string, err error)
- func (fs *AssetFileSystem) NameSpace(nameSpace string) Interface
- func (fs *AssetFileSystem) PrependPath(pth string) error
- func (fs *AssetFileSystem) RegisterPath(pth string) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetFileSystem ¶
type AssetFileSystem struct {
// contains filtered or unexported fields
}
AssetFileSystem AssetFS based on FileSystem
func (*AssetFileSystem) Asset ¶
func (fs *AssetFileSystem) Asset(name string) ([]byte, error)
Asset get content with name from assetfs
func (*AssetFileSystem) Compile ¶
func (fs *AssetFileSystem) Compile() error
Compile compile assetfs
func (*AssetFileSystem) Glob ¶
func (fs *AssetFileSystem) Glob(pattern string) (matches []string, err error)
Glob list matched files from assetfs
func (*AssetFileSystem) NameSpace ¶
func (fs *AssetFileSystem) NameSpace(nameSpace string) Interface
NameSpace return namespaced filesystem
func (*AssetFileSystem) PrependPath ¶
func (fs *AssetFileSystem) PrependPath(pth string) error
PrependPath prepend path to view paths
func (*AssetFileSystem) RegisterPath ¶
func (fs *AssetFileSystem) RegisterPath(pth string) error
RegisterPath register view paths
Click to show internal directories.
Click to hide internal directories.