summaryrefslogtreecommitdiff
path: root/examples/inspectls/main.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-05-01 07:56:25 -0600
committertjpcc <tjp@ctrl-c.club>2023-05-01 07:56:25 -0600
commit9a2da81b11ad0064cca24ce7974827d032309369 (patch)
tree4313224dc089208423e78bffc3ec50833e35bcea /examples/inspectls/main.go
parent21e2758145d100d74013060f7090d84679cae683 (diff)
name change gus -> sliderule
Diffstat (limited to 'examples/inspectls/main.go')
-rw-r--r--examples/inspectls/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/inspectls/main.go b/examples/inspectls/main.go
index 485b84e..5becb71 100644
--- a/examples/inspectls/main.go
+++ b/examples/inspectls/main.go
@@ -12,9 +12,9 @@ import (
"os"
"strings"
- "tildegit.org/tjp/gus"
- "tildegit.org/tjp/gus/gemini"
- "tildegit.org/tjp/gus/logging"
+ sr "tildegit.org/tjp/sliderule"
+ "tildegit.org/tjp/sliderule/gemini"
+ "tildegit.org/tjp/sliderule/logging"
)
func main() {
@@ -54,7 +54,7 @@ func envConfig() (string, string) {
return certfile, keyfile
}
-var inspectHandler = gus.HandlerFunc(func(ctx context.Context, req *gus.Request) *gus.Response {
+var inspectHandler = sr.HandlerFunc(func(ctx context.Context, req *sr.Request) *sr.Response {
// build and return a ```-wrapped description of the connection TLS state
body := "```\n" + displayTLSState(req.TLSState) + "\n```"
return gemini.Success("text/gemini", bytes.NewBufferString(body))