about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-07 16:28:58 +0100
committerEmile <hanemile@protonmail.com>2019-03-07 16:28:58 +0100
commitc76c398a040ef1ee41406b7ab7cafe57a5b2dfc0 (patch)
tree9087e0f5b2d98c9970902ab1266aeca06e0b1343
parent4c5be4a3b6545248e610d63e1d28e1b36b8ba41f (diff)
added comments to the exported functions
-rw-r--r--backend/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/init.go b/backend/init.go
index 0e8303e..cae0e99 100644
--- a/backend/init.go
+++ b/backend/init.go
@@ -5,6 +5,7 @@ import (
 	"log"
 )
 
+// InitStarsTable initialises the stars table
 func InitStarsTable(db *sql.DB) {
 	query := `CREATE TABLE public.stars
 (
@@ -22,6 +23,7 @@ func InitStarsTable(db *sql.DB) {
 	}
 }
 
+// InitNodesTable initialises the nodes table
 func InitNodesTable(db *sql.DB) {
 	query := `CREATE TABLE public.nodes
 	(