diff options
Diffstat (limited to 'examples/inspectls/main.go')
-rw-r--r-- | examples/inspectls/main.go | 8 |
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)) |