Replace Trim with TrimSpaces

This commit is contained in:
Kasia 2022-04-26 01:02:27 +02:00
parent 0526621258
commit e031446398
Signed by: zneix
GPG Key ID: 911916E0523B22F6
1 changed files with 1 additions and 1 deletions

View File

@ -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)