From 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 15:59:29 -0700 Subject: pull request, response, handlers out of the gemini package --- examples/cowsay/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/cowsay/main.go') diff --git a/examples/cowsay/main.go b/examples/cowsay/main.go index be81f50..fc5e89f 100644 --- a/examples/cowsay/main.go +++ b/examples/cowsay/main.go @@ -8,6 +8,7 @@ import ( "os" "os/exec" + "tildegit.org/tjp/gus" guslog "tildegit.org/tjp/gus/contrib/log" "tildegit.org/tjp/gus/gemini" ) @@ -33,7 +34,7 @@ func main() { server.Serve() } -func cowsayHandler(ctx context.Context, req *gemini.Request) *gemini.Response { +func cowsayHandler(ctx context.Context, req *gus.Request) *gus.Response { // prompt for a query if there is none already if req.RawQuery == "" { return gemini.Input("enter a phrase") -- cgit v1.2.3