watcher

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package watcher monitors code changes in an XGo workspace.

Index

Constants

View Source
const (
	DbgFlagMod = 1 << iota
	DbgFlagAll = DbgFlagMod
)

Variables

This section is empty.

Functions

func SetDebug

func SetDebug(dbgFlags int)

Types

type Changes

type Changes struct {
	// contains filtered or unexported fields
}

func NewChanges

func NewChanges(root string) *Changes

func (*Changes) DirAdded

func (p *Changes) DirAdded(name string)

func (*Changes) EntryDeleted

func (p *Changes) EntryDeleted(name string, isDir bool)

func (*Changes) Fetch

func (p *Changes) Fetch(fullPath bool) (dir string)

func (*Changes) FileChanged

func (p *Changes) FileChanged(name string)

func (*Changes) Ignore

func (p *Changes) Ignore(name string, isDir bool) bool

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(root string) Runner

func (*Runner) Close

func (p *Runner) Close() error

func (Runner) Fetch

func (p Runner) Fetch(fullPath bool) (dir string)

func (Runner) Run

func (p Runner) Run() error

Jump to

Keyboard shortcuts

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