Merge pull request #1166 from muhammadsammy/patch-1

Wrap code in 03.2.md (en) with code block syntax
This commit is contained in:
astaxie
2021-06-10 16:16:18 +08:00
committed by GitHub

View File

@@ -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
```go
package main
import (
@@ -33,6 +34,7 @@ We've discussed that web applications are based on the HTTP protocol, and Go pro
log.Fatal("ListenAndServe: ", err)
}
}
```
After we execute the above code, the server begins listening to port 9090 in local host.