@@ -36,7 +36,7 @@ func (e *GoogleSearch) ToString() string {
3636 return strings .Join (e .tags , " " )
3737}
3838
39- // ToURL ...
39+ // ToURL converts tags to an encoded Google Search URL
4040func (e * GoogleSearch ) ToURL () string {
4141 baseURL , _ := url .Parse (searchURL )
4242
@@ -50,68 +50,68 @@ func (e *GoogleSearch) ToURL() string {
5050 return baseURL .String ()
5151}
5252
53- // Site .. .
53+ // Site specifically searches that particular site and lists all the results for that site .
5454func (e * GoogleSearch ) Site (site string ) * GoogleSearch {
5555 e .tags = append (e .tags , concat (siteTag , site , false ))
5656
5757 return e
5858}
5959
60- // Or ...
60+ // Or puts an OR operator in the request
6161func (e * GoogleSearch ) Or () * GoogleSearch {
6262 e .tags = append (e .tags , "OR" )
6363 return e
6464}
6565
66- // Intext .. .
66+ // Intext searches for the occurrences of keywords all at once or one at a time .
6767func (e * GoogleSearch ) Intext (text string ) * GoogleSearch {
6868 e .tags = append (e .tags , concat ("" , text , true ))
6969 return e
7070}
7171
72- // Inurl .. .
72+ // Inurl searches for a URL matching one of the keywords .
7373func (e * GoogleSearch ) Inurl (url string ) * GoogleSearch {
7474 e .tags = append (e .tags , concat (urlTag , url , true ))
7575 return e
7676}
7777
78- // Filetype .. .
78+ // Filetype searches for a particular filetype mentioned in the query .
7979func (e * GoogleSearch ) Filetype (filetype string ) * GoogleSearch {
8080 e .tags = append (e .tags , concat (filetypeTag , filetype , true ))
8181 return e
8282}
8383
84- // Cache .. .
84+ // Cache shows the version of the web page that Google has in its cache .
8585func (e * GoogleSearch ) Cache (url string ) * GoogleSearch {
8686 e .tags = append (e .tags , concat (cacheTag , url , true ))
8787 return e
8888}
8989
90- // Related .. .
90+ // Related list web pages that are “similar” to a specified web page .
9191func (e * GoogleSearch ) Related (url string ) * GoogleSearch {
9292 e .tags = append (e .tags , concat (relatedTag , url , true ))
9393 return e
9494}
9595
96- // Ext .. .
96+ // Ext searches for a particular file extension mentioned in the query .
9797func (e * GoogleSearch ) Ext (ext string ) * GoogleSearch {
9898 e .tags = append (e .tags , concat (extTag , ext , false ))
9999 return e
100100}
101101
102- // Exclude .. .
102+ // Exclude excludes some results .
103103func (e * GoogleSearch ) Exclude (value string ) * GoogleSearch {
104104 e .tags = append (e .tags , concat (excludeTag , value , false ))
105105 return e
106106}
107107
108- // Group .. .
108+ // Group isolate tags between parentheses .
109109func (e * GoogleSearch ) Group (value string ) * GoogleSearch {
110110 e .tags = append (e .tags , "(" + value + ")" )
111111 return e
112112}
113113
114- // Intitle .. .
114+ // Intitle searches for occurrences of keywords in title all or one .
115115func (e * GoogleSearch ) Intitle (value string ) * GoogleSearch {
116116 e .tags = append (e .tags , concat (intitleTag , value , true ))
117117 return e
0 commit comments