Make it create watcher easier.

  • By null
  • Last update: Aug 26, 2022
  • Comments: 0


Make it create watcher easier.

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release


To install the package, run:

go get

Getting Started

import (

func main(t *testing.T) {
	pwd, _ := os.Getwd()
	watcher := watcher.New(&watcher.Config{
		Context: path.Join(pwd, "example/program"),
		Ignores: []string{},
		Commands: []string{
			"go run .",

	if err := watcher.Watch(); err != nil {
		logger.Error("failed to watch: %s", err)

Inspired By

  • silenceper/gowatch - 🚀 gowatch is a command line tool that builds and (re)starts your go project everytime you save a Go or template file.
  • fsnotify/fsnotify - Cross-platform file system notifications for Go.


GoZoox is released under the MIT License.