Help us shape the future of Go! Take the 2026 Go Developer Survey

watch

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package watch ports utils/watcher.ts: a file watcher that re-runs codegen when schema/documents/config change, backed by fsnotify.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(paths []string, onChange func()) error

Run starts a watcher over the given files/dirs and invokes onChange on every relevant change. It blocks until the watcher is stopped or an error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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