From ff38efae6116b1d1845d1f5c02ed977934c64ac6 Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 8 Oct 2018 17:26:00 +0200 Subject: Basic logging --- main.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 0cdd637..43240ef 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "./draw" "./forces" "./structs" + "fmt" ) func main() { @@ -15,8 +16,15 @@ func main() { {structs.Coord{X: 100, Y: 500}, structs.Force{0, 0}, 1000}, } - csv.Import("data/structure03.ita.uni-heidelberg.de_26635.csv", 0, 4000, starsSlice) + fmt.Printf("%-60s", "Opening the csv") + starsSlice = csv.Import("data/structure03.ita.uni-heidelberg.de_26635.csv", 0, 4000, starsSlice) + fmt.Printf("Done\n") + fmt.Printf("%-60s", "Calculate the forces") forces.CalcAllForces(starsSlice) + fmt.Printf("Done\n") + + fmt.Printf("%-60s", "Plotting the stars") draw.Slice(starsSlice, "out.png") + fmt.Printf("Done\n") } -- cgit 1.4.1