Creating a new goroutine per file seems fine. To avoid opening too many files at once, limit the number of open files using a semaphore (see Effective Go for how to do this using a buffered channel).
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.