watch

package module
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 15 Imported by: 1

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWatch

func NewWatch() *watch

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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