Process file in goroutine