Browse Source

Comments for exported functions

Achilleas Koutsou 6 năm trước cách đây
mục cha
commit
a94fdbdeaf
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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