Reformat comoments to flow better with the code
This commit is contained in:
parent
ff70f04795
commit
fa91799164
@ -68,6 +68,7 @@ Command-Line Subcommands
|
||||
Environment Variables
|
||||
HTTP Clients
|
||||
HTTP Servers
|
||||
Context in HTTP Servers
|
||||
Spawning Processes
|
||||
Exec'ing Processes
|
||||
Signals
|
||||
|
@ -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)
|
||||
|
@ -1,2 +1,2 @@
|
||||
4ec814bf1b01bf71fb95007cad39586ad87e3fb6
|
||||
k3vHfk-r3EE
|
||||
50f0c85266d1f8f546242ce8f8caf27732e99dff
|
||||
h1gVSe70R00
|
||||
|
4
public/http-servers
generated
4
public/http-servers
generated
@ -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’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
2
public/index.html
generated
@ -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>
|
||||
|
2
public/spawning-processes
generated
2
public/spawning-processes
generated
@ -9,7 +9,7 @@
|
||||
onkeydown = (e) => {
|
||||
|
||||
if (e.key == "ArrowLeft") {
|
||||
window.location.href = 'http-servers';
|
||||
window.location.href = 'context-in-http-servers';
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user