SimonWaldherr / fsagent

watch a folder for new or modified files and do something (copy, move, delete, send via mail, ...)
MIT License
15 stars 5 forks source link

Split `fsagent.go` into separate Go files #4

Closed mrngm closed 6 years ago

mrngm commented 6 years ago

This commit simplifies fsagent.go by moving a couple of parts to separate files. It removes the global done bool and replaces it with a program-specific channel.

For clarity, goimports was run to sort logically sort imports (first standard library, second github resources, third "external" parties), and to automatically set imports in the newly created files.

Improves: #1