(dir string, files map[string]string, dryRun bool)
| 562 | } |
| 563 | |
| 564 | func writeFiles(dir string, files map[string]string, dryRun bool) { |
| 565 | defer logRuntime(time.Now(), "Done writing files for dir %v", dir) |
| 566 | for fname, text := range files { |
| 567 | writeFile(filepath.Join(dir, fname), text, dryRun) |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | func writeFile(path, text string, dryRun bool) { |
| 572 | if dryRun { |
no test coverage detected
searching dependent graphs…