assets

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx *core.Context) (hook.Hook, error)

Types

type Asset

type Asset struct {
	Files       []string
	Filters     []string
	Output      string
	ShowVersion bool
}

func (*Asset) Execute

func (n *Asset) Execute(ctx context.Context, assetsFS fs.FS, writer core.Writer) error

type AssetsHook

type AssetsHook struct {
	hook.HookImpl
	// contains filtered or unexported fields
}

func (*AssetsHook) AfterBuild

func (h *AssetsHook) AfterBuild(ctx context.Context, w core.Writer) error

写入收集的文件

func (*AssetsHook) BeforeBuild

func (h *AssetsHook) BeforeBuild() error

func (*AssetsHook) HandleTemplateSet

func (h *AssetsHook) HandleTemplateSet(set template.TemplateSet) (template.TemplateSet, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL