From 966c1204d7865153d835fcb4b22ca554bf472f6a Mon Sep 17 00:00:00 2001 From: surdeus Date: Sun, 25 Feb 2024 22:36:00 +0500 Subject: [PATCH] ... --- cmd/test/main.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/cmd/test/main.go b/cmd/test/main.go index 78ff752..2357a15 100644 --- a/cmd/test/main.go +++ b/cmd/test/main.go @@ -84,6 +84,27 @@ Case( c.Printf("%v", opts) }), ), +).Default( + bond.Func(func(c *bond.Context){ + c.SetContentType(contents.Plain) + c.Printf( + "AbsPath: %q\n" + + "Prefix: %q\n" + + "Path: %q\n"+ + "Content-Type: %q\n", + c.AbsPath(), + c.PathPrefix(), + c.Path(), + c.ContentType(), + ) + c.Printf("Query:\n") + for k, vs := range c.Query() { + c.Printf("\t%q:\n", k) + for _, v := range vs { + c.Printf("\t\t%q\n", v) + } + } + }), )) func main() {