Compare commits
No commits in common. "563b11fd334145e02a07e24f39112a4cef2bc763" and "a18fe3c1e687cb7879f00323a93c476b3a8b6e1b" have entirely different histories.
563b11fd33
...
a18fe3c1e6
5
main.go
5
main.go
|
@ -92,11 +92,6 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := os.Stat(*filePath); os.IsNotExist(err) {
|
|
||||||
fmt.Printf("File does not exist: %s\n", *filePath)
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
file, err := os.Open(*filePath)
|
file, err := os.Open(*filePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Error opening file: %s\n", err)
|
fmt.Printf("Error opening file: %s\n", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user