September 2017
Intermediate to advanced
466 pages
9h 33m
English
The last section on pattern matching and regular expressions will work on filenames and will allow you to rename multiple files. As you can guess, a walk function will be used in the program while a regular expression will match the filenames you want to rename.
The name of the utility will be multipleMV.go, and it will be presented in three parts. What multipleMV.go will do is insert a string in front of every filename that is a match to the given regular expression.
The first part is the expected preamble:
package main import ...
Read now
Unlock full access