pilebones / go-udev

Simple udev implementation in Golang
GNU General Public License v3.0
95 stars 28 forks source link

Close crawler channel when filepath.Walk is done, fixed help string. #6

Closed stolowski closed 6 years ago

stolowski commented 6 years ago

Close devices channel in the crawler when done with filepath.Walk so that the receiver knows no more devices are coming.

I'm not sure if this is the best way of doing this, so I'm open to discuss/change this. One alternative would be to have a dedicated 'done' channel and send struct{} to it.