Wrap code in 03.2.md (en) with code block syntax
This commit is contained in:
@@ -4,6 +4,7 @@ We've discussed that web applications are based on the HTTP protocol, and Go pro
|
|||||||
|
|
||||||
## Use http package setup a web server
|
## Use http package setup a web server
|
||||||
|
|
||||||
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -33,6 +34,7 @@ We've discussed that web applications are based on the HTTP protocol, and Go pro
|
|||||||
log.Fatal("ListenAndServe: ", err)
|
log.Fatal("ListenAndServe: ", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
After we execute the above code, the server begins listening to port 9090 in local host.
|
After we execute the above code, the server begins listening to port 9090 in local host.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user