September 2017
Intermediate to advanced
466 pages
9h 33m
English
There are times when you do not need to display everything from the output of find(1). So, in this subsection, you will learn a technique that allows you to manually exclude files from the output of improvedFind.go based on their filenames.
So, the improved version of improvedFind.go will be named excludeFind.go. The output of the diff(1) utility can reveal the code differences between improvedFind.go and excludeFind.go:
$ diff excludeFind.go improvedFind.go
10,19d9
< func excludeNames(name string, exclude string) bool {`
< if exclude == "" {
< return false
< }
< if filepath.Base(name) ...Read now
Unlock full access