aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ast.go8
-rw-r--r--native.go8
2 files changed, 8 insertions, 8 deletions
diff --git a/ast.go b/ast.go
index 41ab3df..8ad222a 100644
--- a/ast.go
+++ b/ast.go
@@ -64,14 +64,14 @@ func ProcessFileAST(filePath string, from string, to string) {
}
ioutil.WriteFile(filePath, outputBuffer.Bytes(), os.ModePerm)
- fmt.Println(yellow+
+ fmt.Print(yellow+
"File",
filePath,
"saved",
- reset, "\n\n")
+ reset, "\n\n\n")
} else {
- fmt.Println(yellow+
+ fmt.Print(yellow+
"No changes to write on this file.",
- reset, "\n\n")
+ reset, "\n\n\n")
}
}
diff --git a/native.go b/native.go
index 81ee8c8..af994ee 100644
--- a/native.go
+++ b/native.go
@@ -109,17 +109,17 @@ func ProcessFileNative(filePath string, from string, to string) {
// Only write if changes were made
if numChanges > 0 {
- fmt.Println(yellow+
+ fmt.Print(yellow+
"File",
filePath,
"saved after",
numChanges,
"changes",
- reset, "\n\n")
+ reset, "\n\n\n")
ioutil.WriteFile(filePath, []byte(output), os.ModePerm)
} else {
- fmt.Println(yellow+
+ fmt.Print(yellow+
"No changes to write on this file.",
- reset, "\n\n")
+ reset, "\n\n\n")
}
}