packr: github.com/gobuffalo/packr/builder Index | Files

package builder

import "github.com/gobuffalo/packr/builder"

Index

Package Files

box.go builder.go clean.go file.go pkg.go tmpl.go visitor.go

Variables

var DebugLog func(string, ...interface{})

func Clean Uses

func Clean(root string) error

Clean up an *-packr.go files

type Builder Uses

type Builder struct {
    context.Context
    RootPath       string
    IgnoredBoxes   []string
    IgnoredFolders []string

    Compress bool
    // contains filtered or unexported fields
}

Builder scans folders/files looking for `packr.NewBox` and then compiling the required static files into `<package-name>-packr.go` files so they can be built into Go binaries.

func New Uses

func New(ctx context.Context, path string) *Builder

New Builder with a given context and path

func (*Builder) Run Uses

func (b *Builder) Run() error

Run the builder.

Package builder imports 20 packages (graph) and is imported by 15 packages. Updated 2019-08-31. Refresh now. Tools for package owners.