Search/text.go
2024-05-16 18:29:26 +02:00

17 lines
491 B
Go

// 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))
}