assets

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Embed

func Embed(src, dst string) error

Embed the assets in the destination folder, this function first copy the files and then generates a public.go file with the assets embedded through a go:embed directive.

func Watcher

func Watcher(src, dest string) func()

Watcher provides a file watching mechanism for the assets folder. It will watch for changes in the assets and copy them to the destination folder as these change to keep in sync the assets folder with the destination folder. At the beginning of the program, the assets folder is copied to the destination folder, and then the watcher is started.

Types

This section is empty.

Jump to

Keyboard shortcuts

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