Browse Source

Comments for exported functions

Achilleas Koutsou 6 years ago
parent
commit
a94fdbdeaf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      routes/search.go

+ 2 - 0
routes/search.go

@@ -124,6 +124,7 @@ func Search(c *context.Context, keywords string, sType int) ([]byte, error) {
 	return data, nil
 }
 
+// ExploreData handles the search box served at /explore/data
 func ExploreData(c *context.Context) {
 	keywords := c.Query("q")
 	sType := c.QueryInt("stype") // non integer stype will return 0
@@ -163,6 +164,7 @@ func ExploreData(c *context.Context) {
 	c.HTML(200, EXPLORE_DATA)
 }
 
+// ExploreCommits handles the search box served at /explore/commits
 func ExploreCommits(c *context.Context) {
 	keywords := c.Query("q")
 	sType := c.QueryInt("stype") // non integer stype will return 0