Documentation
¶
Overview ¶
Package dead makes it easy for web servers to restart on source code or template changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Which environment variable to inspect when checking if we should start watching. Env string // What directories to watch. Can use glob patterns. Patterns []string // How long to wait before acting on file modification event. Debounce time.Duration // What command to execute when building. BuildPath string BuildArgs []string }
Config says what directories to watch and what to execute when building.
func Default ¶
func Default() *Config
Default returns a reasonable default config (environment variable DEAD, 500 ms debounce time, run "go build" to build.
Click to show internal directories.
Click to hide internal directories.