From 8f7d309e78bf064e722885c7c0b48277c6c5342e Mon Sep 17 00:00:00 2001 From: Kaushal Subedi Date: Mon, 26 Oct 2015 20:55:27 -0600 Subject: added missing comments --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index e40c5df..9cd9a9d 100644 --- a/main.go +++ b/main.go @@ -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 -- cgit v1.2.3