watcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGoWatcher

func RunGoWatcher(ctx context.Context, rebuildChan chan<- struct{}, verbose bool) error

func RunTailwindWatcher

func RunTailwindWatcher(ctx context.Context, cssRebuilt chan<- struct{}, cfg TailwindConfig) error

func RunTemplWatcher

func RunTemplWatcher(ctx context.Context, templChange chan<- TemplChange, cfg TemplWatcherConfig) error

Types

type TailwindConfig

type TailwindConfig struct {
	Verbose    bool
	AddProcess func(*exec.Cmd)
}

type TemplChange

type TemplChange int8
const (
	TemplChangeNone               TemplChange = iota
	TemplChangeNeedsRestart                   // Full server restart needed (e.g., _templ.go changed)
	TemplChangeNeedsBrowserReload             // Just browser reload needed (e.g., template content changed)
)

type TemplWatcherConfig

type TemplWatcherConfig struct {
	Verbose    bool
	AddProcess func(*exec.Cmd)
}

Jump to

Keyboard shortcuts

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