Sfoglia il codice sorgente

Comments for exported functions

Achilleas Koutsou 6 anni fa
parent
commit
a94fdbdeaf
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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
 	return data, nil
 }
 }
 
 
+// ExploreData handles the search box served at /explore/data
 func ExploreData(c *context.Context) {
 func ExploreData(c *context.Context) {
 	keywords := c.Query("q")
 	keywords := c.Query("q")
 	sType := c.QueryInt("stype") // non integer stype will return 0
 	sType := c.QueryInt("stype") // non integer stype will return 0
@@ -163,6 +164,7 @@ func ExploreData(c *context.Context) {
 	c.HTML(200, EXPLORE_DATA)
 	c.HTML(200, EXPLORE_DATA)
 }
 }
 
 
+// ExploreCommits handles the search box served at /explore/commits
 func ExploreCommits(c *context.Context) {
 func ExploreCommits(c *context.Context) {
 	keywords := c.Query("q")
 	keywords := c.Query("q")
 	sType := c.QueryInt("stype") // non integer stype will return 0
 	sType := c.QueryInt("stype") // non integer stype will return 0