diff options
author | Emile <hanemile@protonmail.com> | 2019-03-07 16:28:58 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-03-07 16:28:58 +0100 |
commit | c76c398a040ef1ee41406b7ab7cafe57a5b2dfc0 (patch) | |
tree | 9087e0f5b2d98c9970902ab1266aeca06e0b1343 /backend | |
parent | 4c5be4a3b6545248e610d63e1d28e1b36b8ba41f (diff) |
added comments to the exported functions
Diffstat (limited to 'backend')
-rw-r--r-- | backend/init.go | 2 |
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 ( |