about summary refs log tree commit diff
path: root/backend
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-07 16:30:53 +0100
committerEmile <hanemile@protonmail.com>2019-03-07 16:30:53 +0100
commit9155f164651fdf09505418048ae780e0cfcdb79b (patch)
treebb9d3fab47bdbd11dd8d0a6ad32f4d74b6ef5d16 /backend
parentd03f2ad27f2dd12bc2082e44ced4eba22b3b6401 (diff)
commented the exported functions according to the golint standard
Diffstat (limited to 'backend')
-rw-r--r--backend/new.go4
1 files changed, 2 insertions, 2 deletions
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)