Documentation ¶
Index ¶
- func AppendFilter(extension string, filter AssetProcessor)
- func ApplyFilter(context *Context, content string, extension string) (string, error)
- func Build(r *Resolution, context *Context) string
- func GenerateFingerprint(fs fileSystem, path string) (string, error)
- func Get(assetPath string) (string, error)
- type Asset
- type AssetFilter
- type AssetProcessor
- type CachedFile
- type CachedFileInfo
- type CoffeeFilter
- type Config
- type Context
- type DiskFS
- type LessFilter
- type LocalCache
- type Resolution
- type TemplateFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFilter ¶
func AppendFilter(extension string, filter AssetProcessor)
func ApplyFilter ¶
func GenerateFingerprint ¶
This function is not safe to call concurrently.
Types ¶
type AssetFilter ¶
type AssetFilter struct{}
func (AssetFilter) CheckSystem ¶
func (af AssetFilter) CheckSystem() error
func (AssetFilter) RequireBin ¶
func (af AssetFilter) RequireBin(bin string) error
type AssetProcessor ¶
type CachedFile ¶
type CachedFile struct {
// contains filtered or unexported fields
}
func (CachedFile) Close ¶
func (cf CachedFile) Close() error
type CachedFileInfo ¶
type CachedFileInfo struct {
// contains filtered or unexported fields
}
func (CachedFileInfo) IsDir ¶
func (f CachedFileInfo) IsDir() bool
func (CachedFileInfo) ModTime ¶
func (f CachedFileInfo) ModTime() time.Time
func (CachedFileInfo) Mode ¶
func (f CachedFileInfo) Mode() os.FileMode
func (CachedFileInfo) Name ¶
func (f CachedFileInfo) Name() string
func (CachedFileInfo) Size ¶
func (f CachedFileInfo) Size() int64
func (CachedFileInfo) Sys ¶
func (f CachedFileInfo) Sys() interface{}
type CoffeeFilter ¶
type CoffeeFilter struct {
AssetFilter
}
func (CoffeeFilter) CheckSystem ¶
func (cf CoffeeFilter) CheckSystem() error
type Config ¶
Config holds various configuration options used throughout a Context and its collaborators.
type Context ¶
type Context struct { Store map[string]*Asset SearchPaths []string Config *Config // contains filtered or unexported fields }
func NewContext ¶
func NewContext(fs fileSystem) *Context
type LessFilter ¶
type LessFilter struct {
AssetFilter
}
func (LessFilter) CheckSystem ¶
func (lf LessFilter) CheckSystem() error
type LocalCache ¶
type LocalCache struct{}
type Resolution ¶
type TemplateFilter ¶
type TemplateFilter struct{}
func (TemplateFilter) CheckSystem ¶
func (tf TemplateFilter) CheckSystem() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.