Documentation
¶
Index ¶
- func FileNameMin(filename string) string
- type File
- type FileType
- type Files
- type Include
- type Includes
- type Package
- func (p *Package) Assets(assetsDir string, filePath string) (Files, string, error)
- func (p *Package) AssetsDir(assets string) string
- func (p *Package) CacheDir(cacheDir string) string
- func (p *Package) HasAssetFile(rootDir string, assetsDir string, filePath string) bool
- func (p *Package) HasAssets(rootDir string, assetsDir string) bool
- func (p *Package) HasCache(rootDir string, cacheDir string) bool
- func (p *Package) MakeAssets(rootDir string, cacheDir string, assetsDir string, filePath string, src string) error
- func (p *Package) MakeCache(rootDir string, cacheDir string, filePath string, src string) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileNameMin ¶ added in v1.3.0
Types ¶
type Package ¶
type Package struct {
Name string
Version string
Provider Provider
Require Includes // Patterns to specify which files to include
}
func (*Package) AssetsDir ¶
AssetsDir returns the assets dir for the current package, we will store all files in here
func (*Package) CacheDir ¶
CacheDir returns the cache dir for the current package, we will store all files in here
func (*Package) HasAssetFile ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.