Versions in this module Expand all Collapse all v0 v0.0.1 Mar 30, 2020 Changes in this version + func WithDebug() func(c *Compiler) error + func WithDefaultCSSRefiners() func(c *Compiler) error + func WithDefaultImageRefiners() func(c *Compiler) error + func WithDefaultOptions() func(c *Compiler) error + func WithInclude(paths ...string) func(c *Compiler) error + func WithLogger(l *log.Logger) func(c *Compiler) error + func WithParallelTasks(max int) func(c *Compiler) error + func WithRefiners(refiners ...Refiner) func(c *Compiler) error + type Compiler struct + func NewCompiler(opts ...func(*Compiler) error) (*Compiler, error) + func (c *Compiler) Run(destination string, i *Iterator) (err error) + type Iterator struct + Entries []string + Ignore []*regexp.Regexp + func NewIterator(entries, ignore []string) (*Iterator, error) + func (i *Iterator) AllowPath(p string) bool + func (i *Iterator) Walk(f IteratorFunc) error + type IteratorFunc func(target, relative string, info os.FileInfo) error + type RefineJavascript struct + func (p *RefineJavascript) Rename(path string) string + func (rf *RefineJavascript) Debug(destination, source string) error + func (rf *RefineJavascript) Match(p string) bool + func (rf *RefineJavascript) Refine(destination, source string) error + type RefineMinify struct + MatchPath *regexp.Regexp + Minifier minify.MinifierFunc + func (p *RefineMinify) Debug(destination, source string) error + func (p *RefineMinify) Rename(path string) string + func (rf *RefineMinify) Match(p string) bool + func (rf *RefineMinify) Refine(destination, source string) error + type RefineRaster struct + Decode func(io.Reader) (image.Image, error) + Encode func(io.Writer, image.Image) error + MatchPath *regexp.Regexp + func (p *RefineRaster) Debug(destination, source string) error + func (p *RefineRaster) Rename(path string) string + func (rf *RefineRaster) Match(p string) bool + func (rf *RefineRaster) Refine(destination, source string) error + type RefineSASS struct + func (rf *RefineSASS) Debug(destination, source string) error + func (rf *RefineSASS) Match(p string) bool + func (rf *RefineSASS) Refine(destination, source string) error + type RefineSCSS struct + Paths []string + func (rf *RefineSCSS) Debug(destination, source string) error + func (rf *RefineSCSS) Match(p string) bool + func (rf *RefineSCSS) Refine(destination, source string) error + func (rf *RefineSCSS) Rename(p string) string + type RefineText struct + MatchPath *regexp.Regexp + Replace string + Search *regexp.Regexp + func (p *RefineText) Debug(destination, source string) error + func (p *RefineText) Rename(path string) string + func (rf *RefineText) Match(p string) bool + func (rf *RefineText) Refine(destination, source string) error + type Refiner interface + Debug func(destination, source string) error + Match func(path string) (ok bool) + Refine func(destination, source string) error + Rename func(oldPath string) (newPath string)