Reformat comoments to flow better with the code

This commit is contained in:
Eli Bendersky 2019-11-19 06:41:40 -08:00
parent ff70f04795
commit fa91799164
6 changed files with 10 additions and 5 deletions

View File

@ -68,6 +68,7 @@ Command-Line Subcommands
Environment Variables
HTTP Clients
HTTP Servers
Context in HTTP Servers
Spawning Processes
Exec'ing Processes
Signals

View File

@ -11,6 +11,7 @@ import (
)
func hello(w http.ResponseWriter, req *http.Request) {
// A `context.Context` is created for each request by
// the `net/http` machinery, and is available with
// the `Context()` method.
@ -35,6 +36,7 @@ func hello(w http.ResponseWriter, req *http.Request) {
}
func main() {
// As before, we register our handler on the "/hello"
// route, and start serving.
http.HandleFunc("/hello", hello)

View File

@ -1,2 +1,2 @@
4ec814bf1b01bf71fb95007cad39586ad87e3fb6
k3vHfk-r3EE
50f0c85266d1f8f546242ce8f8caf27732e99dff
h1gVSe70R00

4
public/http-servers generated
View File

@ -14,7 +14,7 @@
if (e.key == "ArrowRight") {
window.location.href = 'spawning-processes';
window.location.href = 'context-in-http-servers';
}
}
@ -201,7 +201,7 @@ router we&rsquo;ve just set up.</p>
<p class="next">
Next example: <a href="spawning-processes">Spawning Processes</a>.
Next example: <a href="context-in-http-servers">Context in HTTP Servers</a>.
</p>
<p class="footer">

2
public/index.html generated
View File

@ -163,6 +163,8 @@
<li><a href="http-servers">HTTP Servers</a></li>
<li><a href="context-in-http-servers">Context in HTTP Servers</a></li>
<li><a href="spawning-processes">Spawning Processes</a></li>
<li><a href="execing-processes">Exec'ing Processes</a></li>

View File

@ -9,7 +9,7 @@
onkeydown = (e) => {
if (e.key == "ArrowLeft") {
window.location.href = 'http-servers';
window.location.href = 'context-in-http-servers';
}