Replace Trim with TrimSpaces
This commit is contained in:
parent
0526621258
commit
e031446398
|
@ -19,7 +19,7 @@ func main() {
|
|||
}
|
||||
var allExamples []examples.Example
|
||||
for _, file := range strings.Split(*files, ",") {
|
||||
file = strings.Trim(file, " ")
|
||||
file = strings.TrimSpace(file)
|
||||
f, err := os.Open(file)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Failed to open %s for reading: %s\n", file, err)
|
||||
|
|
Loading…
Reference in New Issue