Search/text.go

18 lines
491 B
Go
Raw Normal View History

2024-05-16 18:29:26 +02:00
// text.go
package main
import (
"net/http"
)
// HandleTextSearch determines which text search engine to use and calls the appropriate function
func handleTextSearch(w http.ResponseWriter, query, safe, lang string) {
// Add logic here to determine which search engine to use, for now it just uses Google
handleTextSearchGoogle(w, query, safe, lang)
}
func displayResults(w http.ResponseWriter, results string) {
// Implement your result display logic here
w.Write([]byte(results))
}