func NewReloader() *Reloader {
	watcher, err := fsnotify.NewWatcher()
	if err != nil {
		panic(err)
	}

	watcher.Add(".")

	reloader := &Reloader{
		server:  hub.New(os.Stdout, "*"),
		watcher: watcher,
	}

	go reloader.notify()
	go reloader.server.Run()

	return reloader
}
// NewReloader creates a new reloader
NewReloader creates a new reloader
// NewReloader creates a new reloader
func NewReloader() *Reloader {
	watcher, err := fsnotify.NewWatcher()
	if err != nil {
		panic(err)
	}
	watcher.Add(".")
	reloader := &Reloader{
		server:  hub.New(os.Stdout, "*"),
		watcher: watcher,
	}
	go reloader.notify()
	go reloader.server.Run()
	return reloader
}
func NewReloader ( ) * Reloader { watcher , err := fsnotify . NewWatcher ( ) if err != nil { panic ( err ) } watcher . Add ( " " ) reloader := & Reloader { server : hub . New ( os . Stdout , " " ) , watcher : watcher , } go reloader . notify ( ) go reloader . server . Run ( ) return reloader }
NewReloader creates a new reloader
NewReloader creates a new reloader