]> Sergey Matveev's repositories - path-extractor.git/blobdiff - pe.go
gofmt all the code
[path-extractor.git] / pe.go
diff --git a/pe.go b/pe.go
index a95a3857fc859e9e616b5e6bcced67425e223a4b..5147f27862ae95d3ddc4a790f6cee77a636bdd89 100644 (file)
--- a/pe.go
+++ b/pe.go
@@ -1,18 +1,19 @@
 package main
 
-import "os"
-import "bufio"
-import "fmt"
+import (
+       "bufio"
+       "fmt"
+       "os"
+)
 
 func main() {
-    stdin := os.Stdin
-    if scanner := bufio.NewScanner(stdin); scanner != nil {
-        for scanner.Scan() {
-            matches := getAllMatches(scanner.Text())
-            for _,match := range matches {
-                fmt.Println(match)
-            }
-        }
-    }
+       stdin := os.Stdin
+       if scanner := bufio.NewScanner(stdin); scanner != nil {
+               for scanner.Scan() {
+                       matches := getAllMatches(scanner.Text())
+                       for _, match := range matches {
+                               fmt.Println(match)
+                       }
+               }
+       }
 }
-