Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Embed ¶
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.
Click to show internal directories.
Click to hide internal directories.