diff --git a/doc/articles/wiki/index.html b/doc/articles/wiki/index.html index 3e0d532d7f..b7ab2cc622 100644 --- a/doc/articles/wiki/index.html +++ b/doc/articles/wiki/index.html @@ -268,6 +268,12 @@ view a wiki page. It will handle URLs prefixed with "/view/". {{code "doc/articles/wiki/part2.go" `/^func viewHandler/` `/^}/`}} +
+Again, note the use of _ to ignore the error
+return value from loadPage. This is done here for simplicity
+and generally considered bad practice. We will attend to this later.
+
First, this function extracts the page title from r.URL.Path,
the path component of the request URL.
@@ -282,12 +288,6 @@ The function then loads the page data, formats the page with a string of simple
HTML, and writes it to w, the http.ResponseWriter.
-Again, note the use of _ to ignore the error
-return value from loadPage. This is done here for simplicity
-and generally considered bad practice. We will attend to this later.
-
To use this handler, we rewrite our main function to
initialize http using the viewHandler to handle