Add link to Floodgap in example hello server

This commit is contained in:
James Mills 2016-09-23 21:34:12 +10:00
parent e01d34d7a2
commit d5262b612a
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
1 changed files with 9 additions and 0 deletions

View File

@ -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) {