From d5262b612a016219318ae3b22af4f189c473f70c Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 23 Sep 2016 21:34:12 +1000 Subject: [PATCH] Add link to Floodgap in example hello server --- examples/hello/main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/hello/main.go b/examples/hello/main.go index fd916b5..e95f379 100644 --- a/examples/hello/main.go +++ b/examples/hello/main.go @@ -21,6 +21,15 @@ func index(w gopher.ResponseWriter, r *gopher.Request) { Description: "foo", }, ) + w.WriteItem( + gopher.Item{ + Type: gopher.DIRECTORY, + Selector: "/", + Description: "Floodgap", + Host: "gopher.floodgap.com", + Port: 70, + }, + ) } func hello(w gopher.ResponseWriter, r *gopher.Request) {