You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pspy.go
    path of file: ./repos/pspy/internal/pspy
    
    the code of the file until where you have to start completion: package pspy

import (
	"os"
	"time"

	"github.com/dominicbreuker/pspy/internal/config"
	"github.com/dominicbreuker/pspy/internal/loggin
    
func initFSW(fsw FSWatcher, rdirs, dirs []string, logger Logger, sigCh <-chan os.Signal) bool {
	errCh, doneCh := fsw.Init(rdirs, dirs)
	for {
		select {
		case <-sigCh:
			return false
		case <-doneCh:
			return true
		case err := <-errCh:
			logger.Errorf(true, "initializing fs watcher: %v", err)
		}
	}
}