(name string)
| 180 | } |
| 181 | |
| 182 | func shouldSkipDir(name string) bool { |
| 183 | switch name { |
| 184 | case ".git", "node_modules", ".github", "backups", "dist", "build", "vendor": |
| 185 | return true |
| 186 | } |
| 187 | return false |
| 188 | } |
| 189 | |
| 190 | func isDocFile(base string) bool { |
| 191 | lower := strings.ToLower(strings.TrimSuffix(base, filepath.Ext(base))) |