Some major changes (#14)
Reviewed-on: #14 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package main
|
||||
|
||||
import "flag"
|
||||
import "fmt"
|
||||
import "os"
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
import "git.kundeng.us/phoenix/clean_file/parser"
|
||||
import "git.kundeng.us/phoenix/clean_file/version"
|
||||
"git.kundeng.us/phoenix/clean_file/parser"
|
||||
"git.kundeng.us/phoenix/clean_file/version"
|
||||
)
|
||||
|
||||
func main() {
|
||||
args := os.Args
|
||||
@@ -29,11 +31,8 @@ func main() {
|
||||
fmt.Println("File path:", filepath)
|
||||
prsr := parser.NumberParser{FilePath: filepath}
|
||||
|
||||
rawValues := prsr.FileDump()
|
||||
parsedValues := prsr.UpdateValues(rawValues)
|
||||
newUpdated := prsr.RemoveDups(parsedValues)
|
||||
numbers := prsr.FileDump()
|
||||
prsr.PrintValues(numbers, true)
|
||||
|
||||
prsr.PrintValues(newUpdated, true)
|
||||
|
||||
prsr.SaveFile(newUpdated)
|
||||
prsr.SaveFile(numbers)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user