add comment about usage

pull/5/head
cblgh 2021-10-20 19:06:45 +02:00 zatwierdzone przez Alexander Cobleigh
rodzic e28cdccb7c
commit 0bf202d65b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -68,6 +68,7 @@ func (h RequestHandler) searchRoute(res http.ResponseWriter, req *http.Request)
query = words[0]
}
// how to use: https://gist.github.com/cblgh/29991ba0a9e65cccbe14f4afd7c975f1
if parts, exists := params["site"]; exists && parts[0] != "" {
// make sure we only have the domain, and no protocol prefix
domain = strings.TrimPrefix(parts[0], "https://")