watcher

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package watcher monitors code changes in a Go+ 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