about summary refs log tree commit diff
path: root/backend
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-07 16:27:45 +0100
committerEmile <hanemile@protonmail.com>2019-03-07 16:27:45 +0100
commit4c5be4a3b6545248e610d63e1d28e1b36b8ba41f (patch)
tree0530162494e4821e9c238416cf215ff91a0f7438 /backend
parente8df6620e575af5e6926117c5f9173e0582fe279 (diff)
updated the comments to golint standard
Diffstat (limited to 'backend')
-rw-r--r--backend/get.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/get.go b/backend/get.go
index 93be930..b76e738 100644
--- a/backend/get.go
+++ b/backend/get.go
@@ -180,7 +180,7 @@ func GetStar(starID int64) structs.Star2D {
 	return star
 }
 
-// getStarIDTimestep returns the timestep the given starID is currently inside of
+// GetStarIDTimestep returns the timestep the given starID is currently inside of
 func GetStarIDTimestep(starID int64) int64 {
 	var timestep int64
 
@@ -222,7 +222,7 @@ func getNodeTotalMass(nodeID int64) float64 {
 	return mass
 }
 
-// getListOfStarsGo returns the list of stars in go struct format
+// GetListOfStarsGo returns the list of stars in go struct format
 func GetListOfStarsGo(database *sql.DB) []structs.Star2D {
 	db = database
 	// build the query
@@ -323,7 +323,7 @@ func GetListOfStarIDsTimestep(db *sql.DB, timestep int64) []int64 {
 	return starIDList
 }
 
-// getListOfStarsCsv returns an array of strings containing the coordinates of all the stars in the stars table
+// GetListOfStarsCsv returns an array of strings containing the coordinates of all the stars in the stars table
 func GetListOfStarsCsv(db *sql.DB) []string {
 	// build the query
 	query := fmt.Sprintf("SELECT * FROM stars")
@@ -354,7 +354,7 @@ func GetListOfStarsCsv(db *sql.DB) []string {
 	return starList
 }
 
-// getListOfStarsTreeCsv returns an array of strings containing the coordinates of all the stars in the given tree
+// GetListOfStarsTreeCsv returns an array of strings containing the coordinates of all the stars in the given tree
 func GetListOfStarsTree(database *sql.DB, treeindex int64) []structs.Star2D {
 	db = database