aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushal Subedi2015-10-27 20:04:17 -0600
committerKaushal Subedi2015-10-27 20:04:17 -0600
commitaccb140e81998d3630825d7e236f603e43d5cf07 (patch)
tree2498e2cb89cc38e9a3a59bd3760341bd6e18a720
parent743122fbff6911da22d505adb50e0e9ff8a0d104 (diff)
downloadgomove-accb140e81998d3630825d7e236f603e43d5cf07.tar.bz2
added comments
-rw-r--r--ast.go1
-rw-r--r--native.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/ast.go b/ast.go
index b71abcf..5259379 100644
--- a/ast.go
+++ b/ast.go
@@ -14,6 +14,7 @@ import (
"golang.org/x/tools/go/ast/astutil"
)
+// ProcessFileAST processes the files using golang's AST parser
func ProcessFileAST(filePath string, from string, to string) {
//Colors to be used on the console
diff --git a/native.go b/native.go
index 92be282..81ee8c8 100644
--- a/native.go
+++ b/native.go
@@ -11,6 +11,7 @@ import (
"github.com/mgutz/ansi"
)
+// ProcessFileNative processes files uing native string search instead of ast parsing
func ProcessFileNative(filePath string, from string, to string) {
//Colors to be used on the console
red := ansi.ColorCode("red+bh")