From 9155f164651fdf09505418048ae780e0cfcdb79b Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 7 Mar 2019 16:30:53 +0100 Subject: commented the exported functions according to the golint standard --- backend/new.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/new.go b/backend/new.go index 615a2e7..0d5a421 100644 --- a/backend/new.go +++ b/backend/new.go @@ -6,7 +6,7 @@ import ( "log" ) -// newTree creates a new tree with the given width +// NewTree creates a new tree with the given width func NewTree(database *sql.DB, width float64) { db = database @@ -31,7 +31,7 @@ func NewTree(database *sql.DB, width float64) { } } -// newNode Inserts a new node into the database with the given parameters +// NewNode Inserts a new node into the database with the given parameters func newNode(x float64, y float64, width float64, depth int64, timestep int64) int64 { // build the query creating a new node query := fmt.Sprintf("INSERT INTO nodes (box_center, box_width, depth, isleaf, timestep) VALUES ('{%f, %f}', %f, %d, TRUE, %d) RETURNING node_id", x, y, width, depth, timestep) -- cgit 1.4.1