Categorygithub.com/NICEXAI/fstask
modulepackage
0.0.2
Repository: https://github.com/nicexai/fstask.git
Documentation: pkg.go.dev

# README

fstask

Installation

Run the following command under your project:

go get -u github.com/NICEXAI/fstask

Basic Usage

If I want to listen for changes to the settings.yaml file and perform a response, you can:

	fsTask, err := fstask.New("./example/config")
	if err != nil {
		log.Println(err)
		return
	}
	defer fsTask.Close()

	fsTask.Add(fstask.Task{
		Rule:   ".*settings.yaml",
		Action: []string{"write"},
		Handle: func(event fsnotify.Event) {
			log.Println(event.Name, "config file change")
		},
	})

	fsTask.Wait()

# Packages

No description provided by the author

# Functions

Debounce prevents jitter and ensures that it is executed only once in a given period of time.
Include Is in the array.
MD5 encryption.
New initialize FsTask.

# Structs

FsTask document task instance.
Task document task.