Discover Packages
github.com/gopsql/watch
package
module
Version:
v1.2.4
Opens a new window with list of versions in this module.
Published: Jun 27, 2024
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
README
¶
watch
Watch .go and .mod files, run go build or go test command if these files changed.
import "github.com/gopsql/logger"
import "github.com/gopsql/watch"
logger := logger.StandardLogger
logger.Fatal(watch.NewWatch().WithLogger(logger).Do())
gow command
If you want a command line program, see https://github.com/gopsql/gow .
Expand ▾
Collapse ▴
Documentation
¶
NewWatch creates new watch instance, watches go files recursively in current
directory. If any .go and .mod files changed, executes the go build command
and then the newly built executable.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.