diff options
| author | Kaushal Subedi | 2015-10-26 20:55:27 -0600 |
|---|---|---|
| committer | Kaushal Subedi | 2015-10-26 20:55:27 -0600 |
| commit | 8f7d309e78bf064e722885c7c0b48277c6c5342e (patch) | |
| tree | 2c94870b1f647073bd8d087d1eeed631dd950188 | |
| parent | 1799db086bd74aa174292fb2655034018054af98 (diff) | |
| download | gomove-8f7d309e78bf064e722885c7c0b48277c6c5342e.tar.bz2 | |
added missing comments
| -rw-r--r-- | main.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -72,17 +72,24 @@ func RunApp(dir string, from string, to string, c *cli.Context) { func ProcessFileNative(filePath string, from string, to string) { + // Open file to read fileContent, err := ioutil.ReadFile(filePath) if err != nil { fmt.Println(err) } + // Scan file line by line scanner := bufio.NewScanner(bytes.NewReader(fileContent)) + + // Track line that is being scanned scanLine := 0 + // Track number of changes in file numChages := 0 + // Control variables isImportLine := false + // Store final output text output := "" // Scan through the lines of go file |
