mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
15 lines
220 B
Go
15 lines
220 B
Go
package main
|
|
|
|
import "os"
|
|
|
|
func openFiles(filenames []string) {
|
|
for _, filename := range filenames {
|
|
file, err := os.Open(filename)
|
|
defer file.Close()
|
|
if err != nil {
|
|
// handle error
|
|
}
|
|
// work on file
|
|
}
|
|
}
|